--warn-annotation-comments
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 20.6k
- Forks
- 3.3k
- PR merge metrics
- PR metrics pending
Description
I think having a linter option warning about old-style type comment annotations, instead of PEP 3107/526 annotations, would be useful. (With the obvious exception of # type: ignore comments.) This is potentially something that would make more sense in linters like flake8, but mypy also feels like a natural place where such an option could exist.
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
No files, tests, or entry points are named. Start by locating mypy's command-line option handling and its processing of type comments and PEP 3107/526 annotations. Done means a configurable warning for old-style type comment annotations, while excluding # type: ignore, with tests covering the warning behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 32/100