add __repr__ method to MutableProxy

This commit is contained in:
Benedikt Bartscher 2024-12-09 20:59:54 +01:00
parent a895eaaede
commit ac68328d80
No known key found for this signature in database

View File

@ -3596,6 +3596,14 @@ class MutableProxy(wrapt.ObjectProxy):
self._self_state = state
self._self_field_name = field_name
def __repr__(self) -> str:
"""Get the representation of the wrapped object.
Returns:
The representation of the wrapped object.
"""
return f"{self.__class__.__name__}({self.__wrapped__})"
def _mark_dirty(
self,
wrapped=None,