Skip to content

Add type annotations for instance attributes in formatting#3454

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

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

Conversation

@jorenham
Copy link
Copy Markdown
Contributor

@jorenham jorenham commented May 18, 2026

Here's another type-coverage improvement (+0.19%) like #3422, #3451, and #3453.

I also noticed that some Sequence input annotations were only used in a for loop, so I took the liberty of widening those to Iterable (backwards compatible and type-safe); I hope you don't mind.

And as I explained in #3451, I also fixed the pyright deprecation warning for the @contextmanagers by changing their return types from Iterator to Generator (also backwards compatible and type-safe).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant