blob: 42df9e8f108ccca713c83697281038a3b5c89dbe (
plain)
1
2
3
4
5
6
|
class Fruit: # [eq-without-hash]
def __init__(self) -> None:
self.name = "apple"
def __eq__(self, other: object) -> bool:
return isinstance(other, Fruit) and other.name == self.name
|