(self)
return "{0}({1})".format(type(self).__name__, attr_str)
Pretty string representation.
Pretty string representation.
Pretty string representation .
def __repr__(self):
    """Pretty string representation."""
    attr_str = ", ".join(f"{k}={v!r}" for k, v in self._attrs.items())
    return "{0}({1})".format(type(self).__name__, attr_str)
def __repr__ ( self ) : attr_str = ", " . join ( f"{k}={v!r}" for k , v in self . _attrs . items ( ) ) return "{0}({1})" . format ( type ( self ) . __name__ , attr_str )