Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix type hint of EmailBackend.ssl_keyfile and EmailBackend.ssl_certfile #1911

Merged
merged 1 commit into from
Jan 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions django-stubs/core/mail/backends/smtp.pyi
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import smtplib
import threading

from _typeshed import StrOrBytesPath
from django.core.mail.backends.base import BaseEmailBackend

class EmailBackend(BaseEmailBackend):
Expand All @@ -11,7 +12,7 @@ class EmailBackend(BaseEmailBackend):
use_tls: bool
use_ssl: bool
timeout: int | None
ssl_keyfile: str | None
ssl_certfile: str | None
ssl_keyfile: StrOrBytesPath | None
ssl_certfile: StrOrBytesPath | None
connection: smtplib.SMTP_SSL | smtplib.SMTP | None
_lock: threading.RLock