@@ -421,6 +421,20 @@ class AbstractEventLoop:
421421 ssl_handshake_timeout : float | None = None ,
422422 ssl_shutdown_timeout : float | None = None ,
423423 ) -> Transport | None : ...
424+ else :
425+ @abstractmethod
426+ async def start_tls (
427+ self ,
428+ transport : BaseTransport ,
429+ protocol : BaseProtocol ,
430+ sslcontext : ssl .SSLContext ,
431+ * ,
432+ server_side : bool = False ,
433+ server_hostname : str | None = None ,
434+ ssl_handshake_timeout : float | None = None ,
435+ ) -> Transport | None : ...
436+
437+ if sys .version_info >= (3 , 13 ):
424438 async def create_unix_server (
425439 self ,
426440 protocol_factory : _ProtocolFactory ,
@@ -432,19 +446,22 @@ class AbstractEventLoop:
432446 ssl_handshake_timeout : float | None = None ,
433447 ssl_shutdown_timeout : float | None = None ,
434448 start_serving : bool = True ,
449+ cleanup_socket : bool = True ,
435450 ) -> Server : ...
436- else :
437- @abstractmethod
438- async def start_tls (
451+ elif sys .version_info >= (3 , 11 ):
452+ async def create_unix_server (
439453 self ,
440- transport : BaseTransport ,
441- protocol : BaseProtocol ,
442- sslcontext : ssl .SSLContext ,
454+ protocol_factory : _ProtocolFactory ,
455+ path : StrPath | None = None ,
443456 * ,
444- server_side : bool = False ,
445- server_hostname : str | None = None ,
457+ sock : socket | None = None ,
458+ backlog : int = 100 ,
459+ ssl : _SSLContext = None ,
446460 ssl_handshake_timeout : float | None = None ,
447- ) -> Transport | None : ...
461+ ssl_shutdown_timeout : float | None = None ,
462+ start_serving : bool = True ,
463+ ) -> Server : ...
464+ else :
448465 async def create_unix_server (
449466 self ,
450467 protocol_factory : _ProtocolFactory ,
0 commit comments