Skip to content

Commit 0829551

Browse files
authored
Fix type hint of EmailBackend.ssl_keyfile and EmailBackend.ssl_certfile (#1911)
1 parent 3537321 commit 0829551

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

django-stubs/core/mail/backends/smtp.pyi

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import smtplib
22
import threading
33

4+
from _typeshed import StrOrBytesPath
45
from django.core.mail.backends.base import BaseEmailBackend
56

67
class EmailBackend(BaseEmailBackend):
@@ -11,7 +12,7 @@ class EmailBackend(BaseEmailBackend):
1112
use_tls: bool
1213
use_ssl: bool
1314
timeout: int | None
14-
ssl_keyfile: str | None
15-
ssl_certfile: str | None
15+
ssl_keyfile: StrOrBytesPath | None
16+
ssl_certfile: StrOrBytesPath | None
1617
connection: smtplib.SMTP_SSL | smtplib.SMTP | None
1718
_lock: threading.RLock

0 commit comments

Comments
 (0)