diff --git a/stdlib/asyncio/base_events.pyi b/stdlib/asyncio/base_events.pyi index 0d8ac2d47491..038d226152d1 100644 --- a/stdlib/asyncio/base_events.pyi +++ b/stdlib/asyncio/base_events.pyi @@ -84,6 +84,7 @@ class BaseEventLoop(AbstractEventLoop): def create_future(self) -> Future[Any]: ... # Tasks methods if sys.version_info >= (3, 14): + # `eager_start` only exists in Python 3.13.3 def create_task( self, coro: _CoroutineLike[_T], diff --git a/stdlib/asyncio/events.pyi b/stdlib/asyncio/events.pyi index 4f2f45355f5b..dbf53d5935d9 100644 --- a/stdlib/asyncio/events.pyi +++ b/stdlib/asyncio/events.pyi @@ -162,6 +162,7 @@ class AbstractEventLoop: def create_future(self) -> Future[Any]: ... # Tasks methods if sys.version_info >= (3, 14): + # `eager_start` only exists in Python 3.13.3 @abstractmethod def create_task( self, diff --git a/stdlib/asyncio/taskgroups.pyi b/stdlib/asyncio/taskgroups.pyi index 2968b0719761..dd0e976535f6 100644 --- a/stdlib/asyncio/taskgroups.pyi +++ b/stdlib/asyncio/taskgroups.pyi @@ -23,6 +23,7 @@ class TaskGroup: async def __aenter__(self) -> Self: ... async def __aexit__(self, et: type[BaseException] | None, exc: BaseException | None, tb: TracebackType | None) -> None: ... if sys.version_info >= (3, 14): + # `eager_start` only exists in Python 3.13.3 def create_task( self, coro: _CoroutineLike[_T], diff --git a/stdlib/asyncio/tasks.pyi b/stdlib/asyncio/tasks.pyi index be9b60cd36ae..6648c6c48359 100644 --- a/stdlib/asyncio/tasks.pyi +++ b/stdlib/asyncio/tasks.pyi @@ -414,6 +414,7 @@ else: def all_tasks(loop: AbstractEventLoop | None = None) -> set[Task[Any]]: ... if sys.version_info >= (3, 14): + # `eager_start` only exists in Python 3.13.3 def create_task( coro: _CoroutineLike[_T], *, name: str | None = None, context: Context | None = None, eager_start: bool | None = None ) -> Task[_T]: ...