refactor(playout): add more typings
This commit is contained in:
parent
a32d9d25f1
commit
719464a272
10 changed files with 54 additions and 44 deletions
|
@ -46,8 +46,8 @@ class LiquidsoapConnection:
|
|||
self._port = port
|
||||
self._timeout = timeout
|
||||
|
||||
def address(self):
|
||||
return f"{self._host}:{self._port}" if self._path is None else self._path
|
||||
def address(self) -> str:
|
||||
return f"{self._host}:{self._port}" if self._path is None else str(self._path)
|
||||
|
||||
def __enter__(self):
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue