advanced_descriptors/log_on_access.py
def __get_obj_source(self, instance: typing.Any, owner: typing.Optional[type] = None) -> str:
        """Get object repr block."""
        if self.log_object_repr:
            return f"{instance!r}"
        return f"<{owner.__name__ if owner is not None else instance.__class__.__name__}() at 0x{id(instance):X}>"
def __get_obj_source(self, instance: typing.Any, owner: typing.Optional[type] = None) -> str:
        if self.log_object_repr:
            return f"{instance!r}"
        return f"<{owner.__name__ if owner is not None else instance.__class__.__name__}() at 0x{id(instance):X}>"
def __get_obj_source ( self , instance : typing . Any , owner : typing . Optional [ type ] = None ) -> str : if self . log_object_repr : return f"{instance!r}" return f"<{owner.__name__ if owner is not None else instance.__class__.__name__}() at 0x{id(instance):X}>"
Get object repr block.
Get object repr block .