Skip to content

refactor: use PEP 695 type parameter syntax for __anonymize - #494

Merged
nanomad merged 1 commit into
developfrom
pep695-typevar
Oct 18, 2026
Merged

nanomad merged 1 commit into
developfrom
pep695-typevar

Conversation

@nanomad

@nanomad nanomad commented Oct 18, 2026

Copy link
Copy Markdown
Contributor

Replace the module-level T = TypeVar("T") with an inline type parameter on __anonymize, matching the type Publishable alias already used in this module. Works on the 3.12 minimum. ruff, mypy and tests pass.

@nanomad
nanomad merged commit 69f054b into develop Oct 18, 2026
9 checks passed
@nanomad
nanomad deleted the pep695-typevar branch October 18, 2026 08:03
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