feat!: adopt Python 3.13 as minimum supported version#61
Merged
Conversation
Member
Author
|
@copilot look at src/reqstool_python_decorators/processors/decorator_processor.py and the proposed change on line #130 with split. Is that correct? |
Contributor
- Bump requires-python to >=3.13 (drops 3.10–3.12 support) - Add .python-version pinned to 3.13.11 via pyenv - Update black target-version to py313 - Add README Requirements section noting Python >= 3.13 - decorators.py: use generic function syntax [T: Callable] (PEP 695) so type checkers preserve the decorated callable's type - decorator_processor.py: add DecoratorInfo, ElementResult TypedDicts with ReadOnly fields (PEP 705, typing.ReadOnly new in 3.13); add FormattedEntry/RequirementAnnotations/FormattedData TypedDicts for format_results return type; add `type Results` alias (PEP 695)
fec4221 to
69b3b82
Compare
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
Breaking change
requires-pythonbumped from>=3.10to>=3.13. Users on Python 3.10, 3.11, or 3.12 will no longer be able to install this package.Changes
pyproject.toml:requires-python = ">=3.13",blacktargetpy313.python-version:3.13(minor only — pyenv resolves to latest 3.13.x)README.md: add Requirements section noting Python >= 3.13decorators.py: generic function syntax[T: Callable](PEP 695) — type checkers now preserve the decorated callable's typedecorator_processor.py:DecoratorInfo,ElementResultTypedDicts withReadOnlyfields (PEP 705, new in 3.13) — result dicts are built once and never mutatedFormattedEntry,RequirementAnnotations,FormattedDataTypedDicts forformat_resultsreturn typetype Results = list[ElementResult]alias (PEP 695)