Skip to content

Conversation

@henryiii
Copy link
Contributor

@henryiii henryiii commented Nov 18, 2025

This adds static typing to the test suite. I noticed this was missing when working on #847, as I want to do a rename there and having typed tests makes that much easier. It also helps IDEs, shows examples of types, indicates when you are testing something counter to how it's typed, and checks the types - I found a minor issue with the type of .evaluate, and have marked a couple of places where more investigation might be good later.

Required to test the PyProjectTable TypedDict from #847.

  • chore: add -> None to tests
  • chore: add some fixture types
  • chore: work through remaining types

Signed-off-by: Henry Schreiner <[email protected]>
Signed-off-by: Henry Schreiner <[email protected]>
@henryiii henryiii force-pushed the henryiii/chore/typetests branch from b5d1373 to 9b86868 Compare November 18, 2025 03:46
@henryiii henryiii merged commit 505278d into pypa:main Nov 18, 2025
40 checks passed
@henryiii henryiii deleted the henryiii/chore/typetests branch November 18, 2025 20:17
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.

2 participants