def __repr__ ( self ) -> str : return '{0}({1})' . format ( type ( self ) . __name__ , repr ( self . string ) )
python self type str
Return the string representation of self .
def __repr__(self) -> str:
        """Return the string representation of self."""
        return '{0}({1})'.format(type(self).__name__, repr(self.string))