Skip to content

Add type annotations for instance attributes in formatting#3454

Open
jorenham wants to merge 3 commits into
pallets:stablefrom
jorenham:typing/formatting/coverage
Open

Add type annotations for instance attributes in formatting#3454
jorenham wants to merge 3 commits into
pallets:stablefrom
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).

@kdeldycke kdeldycke changed the base branch from main to stable May 22, 2026 12:15
@kdeldycke kdeldycke added this to the 8.4.2 milestone May 22, 2026
@kdeldycke kdeldycke requested review from AndreasBackx, Rowlando13 and davidism and removed request for davidism May 22, 2026 12:16
Copy link
Copy Markdown
Collaborator

@AndreasBackx AndreasBackx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just remove the version change and like other PR rebase on main instead perhaps?

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.

5 participants