@@ -422,7 +422,7 @@ def dtype(self) -> CategoricalDtype:
422
422
return self ._dtype
423
423
424
424
@property
425
- def _constructor (self ) -> Type [" Categorical" ]:
425
+ def _constructor (self ) -> Type [Categorical ]:
426
426
return Categorical
427
427
428
428
@classmethod
@@ -2162,7 +2162,7 @@ def _concat_same_type(
2162
2162
2163
2163
# ------------------------------------------------------------------
2164
2164
2165
- def _encode_with_my_categories (self , other : " Categorical" ) -> Categorical :
2165
+ def _encode_with_my_categories (self , other : Categorical ) -> Categorical :
2166
2166
"""
2167
2167
Re-encode another categorical using this Categorical's categories.
2168
2168
@@ -2179,7 +2179,7 @@ def _encode_with_my_categories(self, other: "Categorical") -> Categorical:
2179
2179
)
2180
2180
return self ._from_backing_data (codes )
2181
2181
2182
- def _categories_match_up_to_permutation (self , other : " Categorical" ) -> bool :
2182
+ def _categories_match_up_to_permutation (self , other : Categorical ) -> bool :
2183
2183
"""
2184
2184
Returns True if categoricals are the same dtype
2185
2185
same categories, and same ordered
@@ -2527,7 +2527,7 @@ def _delegate_method(self, name, *args, **kwargs):
2527
2527
# utility routines
2528
2528
2529
2529
2530
- def _get_codes_for_values (values , categories : " Index" ) -> np .ndarray :
2530
+ def _get_codes_for_values (values , categories : Index ) -> np .ndarray :
2531
2531
"""
2532
2532
utility routine to turn values into codes given the specified categories
2533
2533
0 commit comments