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
In a normal class instance, you can override methods directly like instance.save = lambda self, *args, **kwargs: None, which though it isn't awesome style is sometimes a useful hack for inside a test or something.
Currently method assignment is results in an error that isn't one of the accepted types (bool, int, etc.).
The text was updated successfully, but these errors were encountered:
In a normal class instance, you can override methods directly like
instance.save = lambda self, *args, **kwargs: None
, which though it isn't awesome style is sometimes a useful hack for inside a test or something.Currently method assignment is results in an error that isn't one of the accepted types (bool, int, etc.).
The text was updated successfully, but these errors were encountered: