Skip to content

Use PEP 695 generics#204

Merged
mx-moth merged 4 commits into
mainfrom
pep-695-generics
Nov 24, 2025
Merged

Use PEP 695 generics#204
mx-moth merged 4 commits into
mainfrom
pep-695-generics

Conversation

@mx-moth

@mx-moth mx-moth commented Nov 23, 2025

Copy link
Copy Markdown
Contributor

Now that we've dropped Python 3.11 support we can use PEP 695 generics. These are much nicer to use than TypeVar everywhere!

See also #109

Previously they documented actual values in the code, but now that the
generic parameters are more ephemeral, there was nothing to document.
@mx-moth mx-moth self-assigned this Nov 23, 2025

@david-sh-csiro david-sh-csiro left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good! Much cleaner now.

@mx-moth mx-moth merged commit 8501775 into main Nov 24, 2025
15 checks passed
@mx-moth mx-moth deleted the pep-695-generics branch November 24, 2025 00:18
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