Skip to content

Add python 3.12-3.14 into "supported"#57

Open
yarikoptic wants to merge 2 commits into
spyoungtech:mainfrom
yarikoptic:enh-pys
Open

Add python 3.12-3.14 into "supported"#57
yarikoptic wants to merge 2 commits into
spyoungtech:mainfrom
yarikoptic:enh-pys

Conversation

@yarikoptic

Copy link
Copy Markdown

No description provided.

yarikoptic and others added 2 commits April 27, 2026 15:20
v3.15.0 called `tokenize.cookie_re.match()` directly, which crashes on
Python 3.14 where cookie_re became a bytes pattern. v3.21.2 ships its
own regex.

Newer pyupgrade also rewrites `Generator[X, None, None]` -> `Generator[X]`
(PEP 696 typevar defaults) when `from __future__ import annotations`
is present, which trips pinned mypy v1.6.1 in --strict mode:

    error: "Generator" expects 3 type arguments, but 1 given  [type-arg]

`--keep-runtime-typing` disables the rewrite branch in pyupgrade's
pep696 plugin (gated on `not state.settings.keep_runtime_typing`),
so the existing 3-arg `Generator` annotations stay intact.

Co-Authored-By: Claude Code 2.1.119 / Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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