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
Probably the way to fix is to add a filter for hasattr('module').
Second: wrapping @staticmethod breaks because the descriptor protocol that elides off the self parameter gets "erased" in the wrapped function
A bunch of different ways to fix
Finally, it would be convenient if the skip function could take the object itself as well as the name in order to work-around these issues and any other unanticipated ones. (Maybe parameters similar to descriptor protocol get / set for the skip argument to wrap_all?
The text was updated successfully, but these errors were encountered:
First: wrapping builtins (e.g. setattr from object) raises exceptions
Probably the way to fix is to add a filter for hasattr('module').
Second: wrapping @staticmethod breaks because the descriptor protocol that elides off the self parameter gets "erased" in the wrapped function
A bunch of different ways to fix
Finally, it would be convenient if the
skip
function could take the object itself as well as the name in order to work-around these issues and any other unanticipated ones. (Maybe parameters similar to descriptor protocol get / set for theskip
argument to wrap_all?The text was updated successfully, but these errors were encountered: