From bee66a671290e1cee2d4e4300905fc3b62b40d5f Mon Sep 17 00:00:00 2001 From: BJ Dierkes Date: Sat, 9 Nov 2024 22:00:40 -0600 Subject: [PATCH] Fix MyPy Linting --- cement/ext/ext_logging.py | 2 +- cement/ext/ext_smtp.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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