From 2f4651d036658d3ecdff65581c0c7278eca4d5af Mon Sep 17 00:00:00 2001 From: mathieui Date: Sun, 27 Oct 2019 14:47:39 +0100 Subject: Make global objects not Optional This reflects reality, despite the default values of the code. We still need a better solution (singleton?). --- poezio/config.py | 2 +- poezio/logger.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/poezio/config.py b/poezio/config.py index f2160a86..f8fcfd00 100644 --- a/poezio/config.py +++ b/poezio/config.py @@ -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] diff --git a/poezio/logger.py b/poezio/logger.py index da68a3a4..14882f00 100644 --- a/poezio/logger.py +++ b/poezio/logger.py @@ -306,4 +306,4 @@ def create_logger() -> None: logger = Logger() -logger = None # type: Optional[Logger] +logger = None # type: Logger -- cgit v1.2.3