remove bare list, dict, Sequence, None, Any (#25058)

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
Asuka Minato
2025-09-06 04:32:23 +09:00
committed by GitHub
parent 2b0695bdde
commit a78339a040
306 changed files with 787 additions and 817 deletions

View File

@@ -128,7 +128,7 @@ class FeatureBrandingService:
class EmailSender(Protocol):
"""Protocol for email sending abstraction."""
def send_email(self, to: str, subject: str, html_content: str) -> None:
def send_email(self, to: str, subject: str, html_content: str):
"""Send email with given parameters."""
...
@@ -136,7 +136,7 @@ class EmailSender(Protocol):
class FlaskMailSender:
"""Flask-Mail based email sender."""
def send_email(self, to: str, subject: str, html_content: str) -> None:
def send_email(self, to: str, subject: str, html_content: str):
"""Send email using Flask-Mail."""
if mail.is_inited():
mail.send(to=to, subject=subject, html=html_content)
@@ -156,7 +156,7 @@ class EmailI18nService:
renderer: EmailRenderer,
branding_service: BrandingService,
sender: EmailSender,
) -> None:
):
self._config = config
self._renderer = renderer
self._branding_service = branding_service
@@ -168,7 +168,7 @@ class EmailI18nService:
language_code: str,
to: str,
template_context: Optional[dict[str, Any]] = None,
) -> None:
):
"""
Send internationalized email with branding support.
@@ -192,7 +192,7 @@ class EmailI18nService:
to: str,
code: str,
phase: str,
) -> None:
):
"""
Send change email notification with phase-specific handling.
@@ -224,7 +224,7 @@ class EmailI18nService:
to: str | list[str],
subject: str,
html_content: str,
) -> None:
):
"""
Send a raw email directly without template processing.