You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hauntsaninja
changed the title
__setattr__ method that just raises an exception
Reject assignments when __setattr__ has NoReturn return type
Aug 25, 2022
Consider this class:
The above implementation should be considered special and all attribute assignments via
A
, including viaself
should be rejected.This is related to #521 (general
__setattr__
support).The text was updated successfully, but these errors were encountered: