Skip to content

Commit

Permalink
Fix MyPy Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
derks committed Nov 10, 2024
1 parent b09a10f commit bee66a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cement/ext/ext_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -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``."""
Expand Down
2 changes: 1 addition & 1 deletion cement/ext/ext_smtp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bee66a6

Please sign in to comment.