Commit 2f4651d0 authored by mathieui's avatar mathieui

Make global objects not Optional

This reflects reality, despite the default values of the code.
We still need a better solution (singleton?).
parent c0b92119
......@@ -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]
......
......@@ -306,4 +306,4 @@ def create_logger() -> None:
logger = Logger()
logger = None # type: Optional[Logger]
logger = None # type: Logger
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment