From a695e230036f8cf33f10957a1cf61465beb04bd4 Mon Sep 17 00:00:00 2001 From: Sahil Sanjeev Oraon <167977982+1sahilsanjeev@users.noreply.github.com> Date: Sat, 22 Nov 2025 01:08:47 +0530 Subject: [PATCH 1/2] modify: stdlib/asyncio/taskgroups.pyi - Issue #15017 --- stdlib/asyncio/taskgroups.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/asyncio/taskgroups.pyi b/stdlib/asyncio/taskgroups.pyi index 30b7c9129f6f..3e184b5930ad 100644 --- a/stdlib/asyncio/taskgroups.pyi +++ b/stdlib/asyncio/taskgroups.pyi @@ -22,5 +22,5 @@ class TaskGroup: async def __aenter__(self) -> Self: ... async def __aexit__(self, et: type[BaseException] | None, exc: BaseException | None, tb: TracebackType | None) -> None: ... - def create_task(self, coro: _CoroutineLike[_T], *, name: str | None = None, context: Context | None = None) -> Task[_T]: ... - def _on_task_done(self, task: Task[object]) -> None: ... +def create_task(self, coro: _CoroutineLike[_T], *, name: str | None = None, context: Context | None = None, eager_start: bool | None = None, **kwargs: Any) -> Task[_T]: ... +def _on_task_done(self, task: Task[object]) -> None: ... \ No newline at end of file From cd7b7bb9e411f2ede78a108dc36a26a61c079a9e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 21 Nov 2025 19:41:59 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks --- stdlib/asyncio/taskgroups.pyi | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/stdlib/asyncio/taskgroups.pyi b/stdlib/asyncio/taskgroups.pyi index 3e184b5930ad..5ba363f6142f 100644 --- a/stdlib/asyncio/taskgroups.pyi +++ b/stdlib/asyncio/taskgroups.pyi @@ -22,5 +22,14 @@ class TaskGroup: async def __aenter__(self) -> Self: ... async def __aexit__(self, et: type[BaseException] | None, exc: BaseException | None, tb: TracebackType | None) -> None: ... -def create_task(self, coro: _CoroutineLike[_T], *, name: str | None = None, context: Context | None = None, eager_start: bool | None = None, **kwargs: Any) -> Task[_T]: ... -def _on_task_done(self, task: Task[object]) -> None: ... \ No newline at end of file + +def create_task( + self, + coro: _CoroutineLike[_T], + *, + name: str | None = None, + context: Context | None = None, + eager_start: bool | None = None, + **kwargs: Any, +) -> Task[_T]: ... +def _on_task_done(self, task: Task[object]) -> None: ...