Files
RustPython/Lib/test/test_subclassinit.py
Jeong, YunWon 019e754055 Fix __set_name__ error handling to match Python 3.12+ (#6937)
Changed type.rs to add notes to original exceptions instead of
wrapping them in RuntimeError, following PEP 678 (gh-77757).

This allows enum.py's exception handling to work correctly when
super().__new__() is misused in Enum subclasses, enabling the
proper TypeError to propagate instead of being hidden behind
a RuntimeError wrapper.

Fixes test_bad_new_super test case.
2026-02-02 08:11:26 +09:00

8.0 KiB
Vendored