@@ -422,7 +422,7 @@ def dtype(self) -> CategoricalDtype:
422422 return self ._dtype
423423
424424 @property
425- def _constructor (self ) -> Type [" Categorical" ]:
425+ def _constructor (self ) -> Type [Categorical ]:
426426 return Categorical
427427
428428 @classmethod
@@ -2162,7 +2162,7 @@ def _concat_same_type(
21622162
21632163 # ------------------------------------------------------------------
21642164
2165- def _encode_with_my_categories (self , other : " Categorical" ) -> Categorical :
2165+ def _encode_with_my_categories (self , other : Categorical ) -> Categorical :
21662166 """
21672167 Re-encode another categorical using this Categorical's categories.
21682168
@@ -2179,7 +2179,7 @@ def _encode_with_my_categories(self, other: "Categorical") -> Categorical:
21792179 )
21802180 return self ._from_backing_data (codes )
21812181
2182- def _categories_match_up_to_permutation (self , other : " Categorical" ) -> bool :
2182+ def _categories_match_up_to_permutation (self , other : Categorical ) -> bool :
21832183 """
21842184 Returns True if categoricals are the same dtype
21852185 same categories, and same ordered
@@ -2527,7 +2527,7 @@ def _delegate_method(self, name, *args, **kwargs):
25272527# utility routines
25282528
25292529
2530- def _get_codes_for_values (values , categories : " Index" ) -> np .ndarray :
2530+ def _get_codes_for_values (values , categories : Index ) -> np .ndarray :
25312531 """
25322532 utility routine to turn values into codes given the specified categories
25332533
0 commit comments