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:
parent
c0b9211941
commit
2f4651d036
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue