diff options
author | mathieui <mathieui@mathieui.net> | 2019-10-27 14:47:39 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2019-10-27 14:48:00 +0100 |
commit | 2f4651d036658d3ecdff65581c0c7278eca4d5af (patch) | |
tree | 10aa29efad60fe41fccf94c9179a9fa4ab11418c | |
parent | c0b9211941185dacf112db72e496d359b499c600 (diff) | |
download | poezio-2f4651d036658d3ecdff65581c0c7278eca4d5af.tar.gz poezio-2f4651d036658d3ecdff65581c0c7278eca4d5af.tar.bz2 poezio-2f4651d036658d3ecdff65581c0c7278eca4d5af.tar.xz poezio-2f4651d036658d3ecdff65581c0c7278eca4d5af.zip |
Make global objects not Optional
This reflects reality, despite the default values of the code.
We still need a better solution (singleton?).
-rw-r--r-- | poezio/config.py | 2 | ||||
-rw-r--r-- | 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 |