@@ -370,7 +370,7 @@ def __hash__(self) -> int:
370370 # We *do* want to include the real self.ordered here
371371 return int (self ._hash_categories (self .categories , self ._ordered ))
372372
373- def __eq__ (self , other : Any ) -> bool :
373+ def __eq__ (self , other : object ) -> bool :
374374 """
375375 Rules for CDT equality:
376376 1) Any CDT is equal to the string 'category'
@@ -765,7 +765,7 @@ def __hash__(self) -> int:
765765 # TODO: update this.
766766 return hash (str (self ))
767767
768- def __eq__ (self , other ) -> bool :
768+ def __eq__ (self , other : object ) -> bool :
769769 if isinstance (other , str ):
770770 return other == self .name
771771
@@ -904,7 +904,7 @@ def __hash__(self) -> int:
904904 # make myself hashable
905905 return hash (str (self ))
906906
907- def __eq__ (self , other ) -> bool :
907+ def __eq__ (self , other : object ) -> bool :
908908 if isinstance (other , str ):
909909 return other == self .name or other == self .name .title ()
910910
@@ -1077,7 +1077,7 @@ def __hash__(self) -> int:
10771077 # make myself hashable
10781078 return hash (str (self ))
10791079
1080- def __eq__ (self , other ) -> bool :
1080+ def __eq__ (self , other : object ) -> bool :
10811081 if isinstance (other , str ):
10821082 return other .lower () in (self .name .lower (), str (self ).lower ())
10831083 elif not isinstance (other , IntervalDtype ):
0 commit comments