Skip to content

feat: lower minimum Python from 3.14 to 3.12 - #31

Open
Thomas-Z wants to merge 1 commit into
mainfrom
python312
Open

feat: lower minimum Python from 3.14 to 3.12#31
Thomas-Z wants to merge 1 commit into
mainfrom
python312

Conversation

@Thomas-Z

Copy link
Copy Markdown
Collaborator

Three 3.14-only constructs prevented importing on 3.12/3.13:

  • unparenthesized except A, B: (PEP 758) -> parenthesized (3 sites)
  • eagerly-evaluated annotations (PEP 649) -> from __future__ import annotations in the 31 modules that need it
  • zero-arg super() in a slots=True dataclass (CPython gh-90562, fixed in 3.13) -> drop slots=True on DatasetSchema

CI matrix now 3.12/3.13/3.14; mypy pinned to python_version=3.12.

Three 3.14-only constructs prevented importing on 3.12/3.13:

- unparenthesized `except A, B:` (PEP 758) -> parenthesized (3 sites)
- eagerly-evaluated annotations (PEP 649) -> `from __future__ import annotations` in the 31 modules that need it
- zero-arg `super()` in a `slots=True` dataclass (CPython gh-90562, fixed in 3.13) -> drop `slots=True` on DatasetSchema

CI matrix now 3.12/3.13/3.14; mypy pinned to `python_version=3.12`.
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.

3 participants