Skip to content

Commit 48f5574

Browse files
committed
enfixen
1 parent 3a2d455 commit 48f5574

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

Diff for: stdlib/asyncio/base_events.pyi

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import ssl
22
import sys
3-
from _typeshed import FileDescriptorLike, ReadableBuffer, WriteableBuffer
43
from _asyncio import _TaskCompatibleCoro
4+
from _typeshed import FileDescriptorLike, ReadableBuffer, WriteableBuffer
55
from asyncio import _AwaitableLike, _CoroutineLike
66
from asyncio.events import AbstractEventLoop, AbstractServer, Handle, TimerHandle, _TaskFactory
77
from asyncio.futures import Future
@@ -89,7 +89,12 @@ class BaseEventLoop(AbstractEventLoop):
8989
# Tasks methods
9090
if sys.version_info >= (3, 13): # all Task kwargs added in 3.13.2
9191
def create_task(
92-
self, coro: _TaskCompatibleCoro[_T], *, name: str | None = None, context: Context | None = None, eager_start: bool | None = None
92+
self,
93+
coro: _TaskCompatibleCoro[_T],
94+
*,
95+
name: str | None = None,
96+
context: Context | None = None,
97+
eager_start: bool | None = None,
9398
) -> Task[_T]: ...
9499
elif sys.version_info >= (3, 11):
95100
def create_task(self, coro: _CoroutineLike[_T], *, name: object = None, context: Context | None = None) -> Task[_T]: ...

Diff for: stdlib/asyncio/events.pyi

+9-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import sys
33
from _asyncio import (
44
_get_running_loop as _get_running_loop,
55
_set_running_loop as _set_running_loop,
6+
_TaskCompatibleCoro,
67
get_event_loop as get_event_loop,
78
get_running_loop as get_running_loop,
8-
_TaskCompatibleCoro,
99
)
1010
from _typeshed import FileDescriptorLike, ReadableBuffer, StrPath, Unused, WriteableBuffer
1111
from abc import ABCMeta, abstractmethod
@@ -73,13 +73,14 @@ if sys.version_info >= (3, 13): # all Task kwargs added in 3.13.2
7373
def __call__(
7474
self,
7575
loop: AbstractEventLoop,
76-
coro: _TaskCompatibleCoro[_T_co],
76+
coro: _TaskCompatibleCoro[_T],
7777
/,
7878
*,
7979
name: str | None = ...,
8080
context: Context | None = None,
8181
eager_start: bool = False,
8282
) -> Task[_T]: ...
83+
8384
else:
8485
class _TaskFactory(Protocol):
8586
def __call__(self, loop: AbstractEventLoop, coro: _CoroutineLike[_T], /) -> Task[_T]: ...
@@ -182,7 +183,12 @@ class AbstractEventLoop:
182183
if sys.version_info >= (3, 13): # all Task kwargs added in 3.13.2
183184
@abstractmethod
184185
def create_task(
185-
self, coro: _TaskCompatibleCoro[_T], *, name: str | None = None, context: Context | None = None, eager_start: bool | None = None
186+
self,
187+
coro: _TaskCompatibleCoro[_T],
188+
*,
189+
name: str | None = None,
190+
context: Context | None = None,
191+
eager_start: bool | None = None,
186192
) -> Task[_T]: ...
187193
elif sys.version_info >= (3, 11):
188194
@abstractmethod

0 commit comments

Comments
 (0)