`Final`: Don't specify type when giving default

Open
#499 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
tooling

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.

Description

type-feature

E.g.:

x: Final = 42  # ok
x: Final[int]  # ok
x: Final[int] = 42  # warning
x: Final = ...  # warning
x: Final[int] = ...  # warning
Dominant language
Python
Stars
84
Forks
26
Avg merge
1d 21h
Merged PRs (30d)
2

Getting set up

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.

More from PyCQA/flake8-pyi

All issues in PyCQA/flake8-pyi

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.