Support infer_variance= parameter for TypeVar (PEP 695)
Open
Nobody has claimed this yet.
feature
topic-pep-695
- Dominant language
- Python
- Stars
- 20.6k
- Forks
- 3.3k
- PR merge metrics
- PR metrics pending
Description
Feature
See this section of PEP for details.
Pitch
This is probably the most significant omission from full PEP 695 support (though this mostly impacts users of older Python versions).
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 by reading the linked PEP 695 section on auto-variance for TypeVar, then inspect mypy's existing PEP 695 and TypeVar support. Done means infer_variance= is supported consistently for TypeVar and covered by tests for the behavior described in the PEP.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 32/100