python / python/typeshed

TaskGroup create_task missing eager_start and kwargs

Open
#15,017 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
5.1k
Forks
2.1k
Avg merge
1d 19h
Merged PRs (30d)
82

Description

The type shed https://github.com/python/typeshed/blob/main/stdlib/asyncio/taskgroups.pyi on line 25 is missing eager_start and kwargs, should read:

    def create_task(self, coro: _CoroutineLike[_T], *, name: str | None = None, context: Context | None = None, eager_start: bool | None = None, **kwargs: Any) -> Task[_T]: ...

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open stdlib/asyncio/taskgroups.pyi at line 25 and compare the create_task signature with the one shown in the issue. Update the stub so it includes eager_start and kwargs with the specified types; done means the declaration matches the requested signature.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.