Backport PR #659: ⬆️ dep-bump: python 3.14#661
Merged
nstarman merged 1 commit intoMay 8, 2026
Conversation
* ⬆️ dep-bump: python 3.14 * 🐛 fix: py3.14 changes to dataclass construction Replace direct `Field(...)` constructor calls (fragile positional args) with `field(...)` keyword calls in astropy interop modules. Guard `__init_subclass__` in `AbstractUnitSystem` against the intermediate `make_dataclass(slots=True)` call in Python 3.14+ where `__annotate_func__` is not yet present, preventing premature processing of missing annotations (PEP 749 / `__annotate_func__`). Make equality with `StaticValue` work for static arguments through JIT. Signed-off-by: nstarman <nstarman@users.noreply.github.com> (cherry picked from commit 0a1c53e) Signed-off-by: nstarman <nstarman@users.noreply.github.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## versions/v1.11.x #661 +/- ##
===================================================
Coverage ? 96.03%
===================================================
Files ? 46
Lines ? 2445
Branches ? 130
===================================================
Hits ? 2348
Misses ? 72
Partials ? 25 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
0be3fdc
into
GalacticDynamics:versions/v1.11.x
52 of 54 checks passed
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.
Replace direct
Field(...)constructor calls (fragile positional args) withfield(...)keyword calls in astropy interop modules.Guard
__init_subclass__inAbstractUnitSystemagainst the intermediatemake_dataclass(slots=True)call in Python 3.14+ where__annotate_func__is not yet present, preventing premature processing of missing annotations (PEP 749 /__annotate_func__).Make equality with
StaticValuework for static arguments through JIT.(cherry picked from commit 0a1c53e)