[mypyc] Propagate property setter return value (#21814)
The property setter wrapper put in `tp_getset` returns 0 regardless of the value returned by the function generated for the property setter. This can cause strange errors reported by cpython when the property setter raises an exception since the wrapper still returns a non-error value. Fix by checking the return value of the property setter in the wrapper and returning -1 on error.
P
Piotr Sawicki committed
14be7ab05211f6b4f6504bbd19af315c6db7dec6
Parent: 7ecf052
Committed by GitHub <noreply@github.com>
on 8/7/2026, 1:28:31 PM