Skip to content

Commit

Permalink
Fix ruff static check (#31762)
Browse files Browse the repository at this point in the history
  • Loading branch information
utkarsharma2 committed Jun 7, 2023
1 parent b9efbf5 commit b779689
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions airflow/providers/smtp/notifications/smtp.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

class SmtpNotifier(BaseNotifier):
"""
SMTP Notifier
SMTP Notifier.
:param smtp_conn_id: The :ref:`smtp connection id <howto/connection:smtp>`
that contains the information used to authenticate the client.
Expand Down Expand Up @@ -82,11 +82,11 @@ def __init__(

@cached_property
def hook(self) -> SmtpHook:
"""Smtp Events Hook"""
"""Smtp Events Hook."""
return SmtpHook(smtp_conn_id=self.smtp_conn_id)

def notify(self, context):
"""Send a email via smtp server"""
"""Send a email via smtp server."""
with self.hook as smtp:
smtp.send_email_smtp(
smtp_conn_id=self.smtp_conn_id,
Expand Down

0 comments on commit b779689

Please sign in to comment.