Skip to content

Commit

Permalink
Fix ruff static check (#31762)
Browse files Browse the repository at this point in the history
GitOrigin-RevId: b7796895cb41d8e5e79e6d8eee150b11d8c302a7
  • Loading branch information
utkarsharma2 authored and Cloud Composer Team committed Sep 19, 2024
1 parent 86c79e1 commit 515b213
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 515b213

Please sign in to comment.