We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d779366 commit 10e23e8Copy full SHA for 10e23e8
pandas/core/dtypes/dtypes.py
@@ -468,12 +468,8 @@ def _hash_categories(self) -> int:
468
# error: Incompatible types in assignment (expression has type
469
# "List[ndarray]", variable has type "ndarray")
470
cat_array = [cat_array] # type: ignore[assignment]
471
- # error: Incompatible types in assignment (expression has type "ndarray",
472
- # variable has type "int")
473
- hashed = combine_hash_arrays( # type: ignore[assignment]
474
- iter(cat_array), num_items=len(cat_array)
475
- )
476
- return np.bitwise_xor.reduce(hashed)
+ combined_hashed = combine_hash_arrays(iter(cat_array), num_items=len(cat_array))
+ return np.bitwise_xor.reduce(combined_hashed)
477
478
@classmethod
479
def construct_array_type(cls) -> type_t[Categorical]:
0 commit comments