__eq__ checks types before using info