refactor(playout): add more typings

This commit is contained in:
jo 2023-03-01 20:27:27 +01:00 committed by Kyle Robbertze
parent a32d9d25f1
commit 719464a272
10 changed files with 54 additions and 44 deletions

View file

@ -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: