Open simonw opened 2 months ago
https://devguide.python.org/versions/ says that Python 3.13 is scheduled for release in October 2024.
Got that same Pint error in CI: https://github.com/simonw/datasette/actions/runs/8681173571/job/23803398510?pr=2321
/opt/hostedtoolcache/Python/3.13.0-alpha.6/x64/lib/python3.13/site-packages/pint/delegates/txt_defparser/common.py:21: in <module>
@dataclass(frozen=True)
/opt/hostedtoolcache/Python/3.13.0-alpha.6/x64/lib/python3.13/dataclasses.py:1289: in wrap
return _process_class(cls, init, repr, eq, order, unsafe_hash,
/opt/hostedtoolcache/Python/3.13.0-alpha.6/x64/lib/python3.13/dataclasses.py:1044: in _process_class
raise TypeError('cannot inherit frozen dataclass from a '
E TypeError: cannot inherit frozen dataclass from a non-frozen one
We currently pin to: https://github.com/simonw/datasette/blob/7d6d471dc5559e174507c8e85a38a00ea8009123/setup.py#L53
The most recent version is 0.23 from December 2023: https://github.com/hgrecco/pint/releases/tag/0.23
The only open issue I can find in Pint that relates to dataclasses is this one:
Which links to this:
Unclear if either of those relate to the error I am seeing though.
Opened an issue against Pint here:
I think there may be an issue with Pint - I just hit this error with Python 3.13 on my local machine: