def __eq__(self, o: object) -> bool:
        """Two characters are considered equal if their names are equal."""
        if isinstance(o, self.__class__):
            return self.name.lower() == o.name.lower()
        return False
def __eq__ ( self , o : object ) -> bool : if isinstance ( o , self . __class__ ) : return self . name . lower ( ) == o . name . lower ( ) return False
Two characters are considered equal if their names are equal.