Skip to content

Add type annotations for instance attributes in utils#3422

Open
jorenham wants to merge 1 commit into
pallets:mainfrom
jorenham:typing/utils/coverage
Open

Add type annotations for instance attributes in utils#3422
jorenham wants to merge 1 commit into
pallets:mainfrom
jorenham:typing/utils/coverage

Conversation

@jorenham
Copy link
Copy Markdown

I noticed that the type coverage of click was pretty high, but not quite at 100% yet (according to typestats: https://jorenham.github.io/typestats/dashboard/report/#click). So towards that end, this adds type annotations for the instance attributes of the classes in click.utils, increasing the type-coverage of click by almost 0.5% (90.97% -> 91.47%).

If you're open to it, I'd also like to open PRs for the other modules, so that we can reach that sweet 100% type coverage :)

@kdeldycke
Copy link
Copy Markdown
Collaborator

I'm OK with these changes! :)

@kdeldycke kdeldycke added this to the 8.4.0 milestone May 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants