8000 Add optional name arg to create_task() · python/typeshed@96ee45f · GitHub
[go: up one dir, main page]

Skip to content

Commit 96ee45f

Browse files
committed
Add optional name arg to create_task()
See python/cpython#31398
1 parent 3a4d751 commit 96ee45f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/asyncio/taskgroups.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ class TaskGroup:
1212
def __init__(self) -> None: ...
1313
async def < 4B27 span class=pl-en>__aenter__(self: Self) -> Self: ...
1414
async def __aexit__(self, et: type[BaseException] | None, exc: BaseException | None, tb: TracebackType | None) -> None: ...
15-
def create_task(self, coro: Generator[Any, None, _T] | Coroutine[Any, Any, _T]) -> Task[_T]: ...
15+
def create_task(self, coro: Generator[Any, None, _T] | Coroutine[Any, Any, _T], *, name: str | None = None) -> Task[_T]: ...

0 commit comments

Comments
 (0)
0