@@ -370,7 +370,7 @@ def __hash__(self) -> int:
370
370
# We *do* want to include the real self.ordered here
371
371
return int (self ._hash_categories (self .categories , self ._ordered ))
372
372
373
- def __eq__ (self , other : Any ) -> bool :
373
+ def __eq__ (self , other : object ) -> bool :
374
374
"""
375
375
Rules for CDT equality:
376
376
1) Any CDT is equal to the string 'category'
@@ -765,7 +765,7 @@ def __hash__(self) -> int:
765
765
# TODO: update this.
766
766
return hash (str (self ))
767
767
768
- def __eq__ (self , other ) -> bool :
768
+ def __eq__ (self , other : object ) -> bool :
769
769
if isinstance (other , str ):
770
770
return other == self .name
771
771
@@ -904,7 +904,7 @@ def __hash__(self) -> int:
904
904
# make myself hashable
905
905
return hash (str (self ))
906
906
907
- def __eq__ (self , other ) -> bool :
907
+ def __eq__ (self , other : object ) -> bool :
908
908
if isinstance (other , str ):
909
909
return other == self .name or other == self .name .title ()
910
910
@@ -1077,7 +1077,7 @@ def __hash__(self) -> int:
1077
1077
# make myself hashable
1078
1078
return hash (str (self ))
1079
1079
1080
- def __eq__ (self , other ) -> bool :
1080
+ def __eq__ (self , other : object ) -> bool :
1081
1081
if isinstance (other , str ):
1082
1082
return other .lower () in (self .name .lower (), str (self ).lower ())
1083
1083
elif not isinstance (other , IntervalDtype ):
0 commit comments