Skip to content

Commit 0869b43

Browse files
asyncio: start_tls() can return None (#10346)
1 parent 1e25866 commit 0869b43

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

stdlib/asyncio/base_events.pyi

+2-2
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ class BaseEventLoop(AbstractEventLoop):
263263
server_hostname: str | None = None,
264264
ssl_handshake_timeout: float | None = None,
265265
ssl_shutdown_timeout: float | None = None,
266-
) -> Transport: ...
266+
) -> Transport | None: ...
267267
async def connect_accepted_socket(
268268
self,
269269
protocol_factory: Callable[[], _ProtocolT],
@@ -317,7 +317,7 @@ class BaseEventLoop(AbstractEventLoop):
317317
server_side: bool = False,
318318
server_hostname: str | None = None,
319319
ssl_handshake_timeout: float | None = None,
320-
) -> Transport: ...
320+
) -> Transport | None: ...
321321
async def connect_accepted_socket(
322322
self,
323323
protocol_factory: Callable[[], _ProtocolT],

stdlib/asyncio/events.pyi

+2-2
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ class AbstractEventLoop:
358358
server_hostname: str | None = None,
359359
ssl_handshake_timeout: float | None = None,
360360
ssl_shutdown_timeout: float | None = None,
361-
) -> Transport: ...
361+
) -> Transport | None: ...
362362
async def create_unix_server(
363363
self,
364364
protocol_factory: _ProtocolFactory,
@@ -418,7 +418,7 @@ class AbstractEventLoop:
418418
server_side: bool = False,
419419
server_hostname: str | None = None,
420420
ssl_handshake_timeout: float | None = None,
421-
) -> Transport: ...
421+
) -> Transport | None: ...
422422
async def create_unix_server(
423423
self,
424424
protocol_factory: _ProtocolFactory,

0 commit comments

Comments
 (0)