`Final`: Don't specify type when giving default
Open
Nobody has claimed this yet.
type-feature
- Dominant language
- Python
- Stars
- 83
- Forks
- 22
- PR merge metrics
- No merged PRs in 30d
Description
E.g.:
x: Final = 42 # ok
x: Final[int] # ok
x: Final[int] = 42 # warning
x: Final = ... # warning
x: Final[int] = ... # warning
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
The issue gives Python examples but names no implementation file or test. Locate the existing handling and tests for Final annotations in this flake8 plugin, then verify the two accepted forms and three warning cases shown; done means those cases are diagnosed consistently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100