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
Class attributes are meant to be removed by __delete__, but this doesn't seem to be implemented. ParameterAttribute otherwise follows the descriptor pattern by defining __set__ and __get__.
We don't have much of a habit of deleting attributes; if they exist, it's usually for good reason. The existing up-converters are blind to this issue because they muck around with a keyword arguments dictionary before setting anything on an object. But there are cases in which one would want to change a handler in-memory, including deleting attributes.
The text was updated successfully, but these errors were encountered:
Describe the bug
Class attributes are meant to be removed by
__delete__
, but this doesn't seem to be implemented.ParameterAttribute
otherwise follows the descriptor pattern by defining__set__
and__get__
.To Reproduce
Output
Additional context
We don't have much of a habit of deleting attributes; if they exist, it's usually for good reason. The existing up-converters are blind to this issue because they muck around with a keyword arguments dictionary before setting anything on an object. But there are cases in which one would want to change a handler in-memory, including deleting attributes.
The text was updated successfully, but these errors were encountered: