diff --git a/cement/ext/ext_logging.py b/cement/ext/ext_logging.py index 5c61e849..ce116cc2 100644 --- a/cement/ext/ext_logging.py +++ b/cement/ext/ext_logging.py @@ -171,7 +171,7 @@ def set_level(self, level: str) -> None: def get_level(self) -> str: """Returns the current log level.""" - return logging.getLevelName(self.backend.level) # type: ignore + return logging.getLevelName(self.backend.level) def clear_loggers(self, namespace: str) -> None: """Clear any previously configured loggers for ``namespace``.""" diff --git a/cement/ext/ext_smtp.py b/cement/ext/ext_smtp.py index ee267c3d..a314a927 100644 --- a/cement/ext/ext_smtp.py +++ b/cement/ext/ext_smtp.py @@ -164,7 +164,7 @@ def _send_message(self, subject = f"{params['subject_prefix']} {params['subject']}" else: subject = params['subject'] - msg['Subject'] = Header(subject) + msg['Subject'] = Header(subject) # type: ignore # add body as text and/or as html partText = None