python-trio / python-trio/trio
Add `TypeVarTuple` to `Nursery.start`
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 7.3k
- Forks
- 431
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 6
Description
#2881 attempted to add TypeVarTuple to the signature of Nursery.start but hit problems and ended up blocked by https://github.com/python/mypy/issues/16522
I'm opening this issue so we can track it on our end as well, or possibly discuss alternate ways of adding type hints. We could consider having a million overloads like trio-typing did as a stop-gap.
Equivalent anyio issue: https://github.com/agronholm/anyio/issues/678
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Nursery.start signature and review the failed approach in #2881, along with the linked mypy issue 16522 and equivalent AnyIO issue 678. Determine whether TypeVarTuple support is viable or whether an alternate typing approach is needed; done means Nursery.start has an agreed, working type-hint solution.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100