@@ -132,14 +132,14 @@ class SMTP:
132132 def starttls (self , * , context : SSLContext | None = None ) -> _Reply : ...
133133 else :
134134 @overload
135- def starttls (self , * , context : SSLContext | None = None ) -> _Reply : ...
135+ def starttls (self , keyfile : None = None , certfile : None = None , context : SSLContext | None = None ) -> _Reply : ...
136136 @overload
137137 @deprecated (
138138 "The `keyfile`, `certfile` parameters are deprecated since Python 3.6; "
139139 "removed in Python 3.12. Use `context` parameter instead."
140140 )
141141 def starttls (
142- self , keyfile : StrOrBytesPath | None = None , certfile : StrOrBytesPath | None = None , context : SSLContext | None = None
142+ self , keyfile : StrOrBytesPath | None = None , certfile : StrOrBytesPath | None = None , context : None = None
143143 ) -> _Reply : ...
144144
145145 def sendmail (
@@ -181,7 +181,8 @@ class SMTP_SSL(SMTP):
181181 host : str = "" ,
182182 port : int = 0 ,
183183 local_hostname : str | None = None ,
184- * ,
184+ keyfile : None = None ,
185+ certfile : None = None ,
185186 timeout : float = ...,
186187 source_address : _SourceAddress | None = None ,
187188 context : SSLContext | None = None ,
@@ -200,7 +201,7 @@ class SMTP_SSL(SMTP):
200201 certfile : StrOrBytesPath | None = None ,
201202 timeout : float = ...,
202203 source_address : _SourceAddress | None = None ,
203- context : SSLContext | None = None ,
204+ context : None = None ,
204205 ) -> None : ...
205206 keyfile : StrOrBytesPath | None
206207 certfile : StrOrBytesPath | None
0 commit comments