mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
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.
8.0 KiB
Vendored
8.0 KiB
Vendored