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
classTrashable:
""" .. describe:: trashed A trashed object cannot be modified and a :ref:`TrashedError` is returned in this case. """defcheck_trashed(self) ->None:
"""Subclass API: Check that the object is not :attr:`trashed`."""classTrashedError(ValueError):
"""Returned if it is not possible to perform an action because the object is trashed."""
Introduce an own error for modifying trashed objects.
The text was updated successfully, but these errors were encountered: