Skip to content

Commit

Permalink
update email lib types and misc linting defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
ghukill committed Jan 31, 2025
1 parent aed5b27 commit f6232a0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 5 additions & 2 deletions patronload/email.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from email.message import EmailMessage
from email.message import EmailMessage # noqa: A005
from email.policy import EmailPolicy, default

import boto3
Expand All @@ -7,7 +7,10 @@
class Email(EmailMessage):
"""Email subclasses EmailMessage with added functionality to populate and send."""

def __init__(self, policy: EmailPolicy = default) -> None:
def __init__(
self,
policy: EmailPolicy = default, # type: ignore[assignment]
) -> None:
"""Initialize Email instance."""
super().__init__(policy)

Expand Down
4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ lint.select = ["ALL", "PT"]

lint.ignore = [
# default
"ANN101",
"ANN102",
"COM812",
"COM812",
"D107",
"N812",
"PTH",
Expand Down

0 comments on commit f6232a0

Please sign in to comment.