Add Python 3.14 support#146
Merged
Merged
Conversation
Fix ForwardRef resolution for PEP 649 compatibility in Python 3.14. The _resolve_forward method now uses the stable public API typing.evaluate_forward_ref() on Python 3.14+ and passes module globals on all versions, fixing NameError failures caused by deferred annotation evaluation. Additional changes: - Update readthedocs.yaml to Python 3.12 and Ubuntu 22.04 (Python 3.9 is EOL and below the SDK's minimum) - Refresh poetry.lock (docformatter 1.7.5->1.7.8 drops broken untokenize dependency, fixing poetry install on Python 3.14) - Use ARCALOT_POETRY_VERSION org variable in CI workflow Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
docformatter 1.7.8 introduced a regression where it crashes with ValueError in tokenize.untokenize when processing files with trailing whitespace on blank lines. This affects schema.py. See: PyCQA/docformatter#355 Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Apply docformatter auto-fixes to docstrings in example_plugin.py, atp.py, and plugin.py. These are pre-existing formatting issues that newer versions of docformatter now flag. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
docformatter 1.7.8 crashes with ValueError on schema.py (upstream: PyCQA/docformatter#355). Versions < 1.7.8 cannot be used because they depend on untokenize, which fails to build on Python 3.14. Use find to pass files explicitly, excluding schema.py. Tracking issue: #147 Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
3 tasks
jaredoconnell
approved these changes
Jun 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ForwardRef._evaluate()breakage under PEP 649 (Python 3.14 deferred annotation evaluation). The_resolve_forwardmethod now uses the stabletyping.evaluate_forward_ref()API on 3.14+ and passes module globals on all versions, fixingNameErrorfailures when resolving self-referential schema types likeStringEnumSchema.readthedocs.yamlfrom Python 3.9 / Ubuntu 20.04 to Python 3.12 / Ubuntu 22.04 (3.9 is EOL and below the SDK's minimum).poetry.lock— updatesdocformatter1.7.5→1.7.8 which drops the brokenuntokenizedependency, fixingpoetry installon Python 3.14.ARCALOT_POETRY_VERSIONorg variable in CI workflow instead of hardcoded version.Test plan
ARCALOT_PYTHON_SUPPORTED_VERSIONSto['3.12', '3.13', '3.14']ARCALOT_POETRY_VERSIONto1.8.3🤖 Generated with Claude Code