Skip to content

Commit 10e23e8

Browse files
authored
TYP: changed variable hashed to combined_hashed in dtype.py (pandas-dev#44360)
* changed variable hashed to combined_hashed in dtype.py * pre-commit changes
1 parent d779366 commit 10e23e8

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

pandas/core/dtypes/dtypes.py

+2-6
Original file line numberDiff line numberDiff line change
@@ -468,12 +468,8 @@ def _hash_categories(self) -> int:
468468
# error: Incompatible types in assignment (expression has type
469469
# "List[ndarray]", variable has type "ndarray")
470470
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)
471+
combined_hashed = combine_hash_arrays(iter(cat_array), num_items=len(cat_array))
472+
return np.bitwise_xor.reduce(combined_hashed)
477473

478474
@classmethod
479475
def construct_array_type(cls) -> type_t[Categorical]:

0 commit comments

Comments
 (0)