chore(python): forgot type hints

This commit is contained in:
cschen 2024-09-20 17:17:58 +02:00
parent d60ac63b49
commit 17c7f0588c

View file

@ -7,7 +7,6 @@ class Driver:
""" """
def stop(self) -> None: ... def stop(self) -> None: ...
def get_default_config() -> Config: ...
class Config: class Config:
""" """
Configuration data structure for codemp clients Configuration data structure for codemp clients
@ -18,6 +17,8 @@ class Config:
port: Optional[int] port: Optional[int]
tls: Optional[bool] tls: Optional[bool]
def __new__(cls, *, username: str, password: str, **kwargs) -> Config: ...
def init() -> Driver: ... def init() -> Driver: ...
def set_logger(logger_cb: Callable[[str], None], debug: bool) -> bool: ... def set_logger(logger_cb: Callable[[str], None], debug: bool) -> bool: ...
def connect(config: Config) -> Promise[Client]: ... def connect(config: Config) -> Promise[Client]: ...