Make global objects not Optional

This reflects reality, despite the default values of the code.
We still need a better solution (singleton?).
This commit is contained in:
mathieui 2019-10-27 14:47:39 +01:00
parent c0b9211941
commit 2f4651d036
No known key found for this signature in database
GPG key ID: C59F84CEEFD616E3
2 changed files with 2 additions and 2 deletions

View file

@ -679,7 +679,7 @@ LOGGING_CONFIG = {
firstrun = False
# Global config object. Is setup in poezio.py
config = None # type: Optional[Config]
config = None # type: Config
# The logger object for this module
log = None # type: Optional[logging.Logger]

View file

@ -306,4 +306,4 @@ def create_logger() -> None:
logger = Logger()
logger = None # type: Optional[Logger]
logger = None # type: Logger