hgrecco / pint

Operate and manipulate physical quantities in Python
http://pint.readthedocs.org/
Other
2.4k stars 469 forks source link

Frozen dataclass error #2073

Open Chrischu2503 opened 14 hours ago

Chrischu2503 commented 14 hours ago

In pint\delegates\txt_defparser\common.py", line 23, it states @dataclass(frozen=True). Apparently, that clashes with Python313\Lib\dataclasses.py", line 1295, in wrap return _process_class(cls, init, repr, eq, order, unsafe_hash, frozen, match_args, kw_only, slots, weakref_slot) due to Python313\Lib\dataclasses.py", line 1043, in _process_class raise TypeError('cannot inherit frozen dataclass from a ' 'non-frozen one') TypeError: cannot inherit frozen dataclass from a non-frozen one

My local hard fix was to comment in the line 23. I am runing Windows 11, installed python 3.13.0 via the official webside and am using VScode.

dopplershift commented 9 hours ago

Duplicate of #1969.