Skip to content

Commit

Permalink
Fix type hint of EmailBackend.ssl_keyfile and `EmailBackend.ssl_cer…
Browse files Browse the repository at this point in the history
…tfile` (#1911)
  • Loading branch information
Viicos authored Jan 18, 2024
1 parent 3537321 commit 0829551
Showing 1 changed file with 3 additions and 2 deletions.
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

0 comments on commit 0829551

Please sign in to comment.