Skip to content

Add type annotations for instance attributes in testing#3451

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

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

Conversation

@jorenham
Copy link
Copy Markdown
Contributor

@jorenham jorenham commented May 18, 2026

This is basically the story as #3422, and increases type coverage by 1.18& (91.5% -> 92.68%).

I also took the libery of narrowing the contextmanager return types from Iterator to Generator, because (based)pyright was complaining that using @contextmanager with -> Iterator is deprecated:

image

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