Skip to content

Commit

Permalink
TYP: changed variable hashed to combined_hashed in dtype.py (pandas-d…
Browse files Browse the repository at this point in the history
…ev#44360)

* changed variable hashed to combined_hashed in dtype.py

* pre-commit changes
  • Loading branch information
nickleus27 authored Nov 9, 2021
1 parent d779366 commit 10e23e8
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions pandas/core/dtypes/dtypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,12 +468,8 @@ def _hash_categories(self) -> int:
# error: Incompatible types in assignment (expression has type
# "List[ndarray]", variable has type "ndarray")
cat_array = [cat_array] # type: ignore[assignment]
# error: Incompatible types in assignment (expression has type "ndarray",
# variable has type "int")
hashed = combine_hash_arrays( # type: ignore[assignment]
iter(cat_array), num_items=len(cat_array)
)
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)

@classmethod
def construct_array_type(cls) -> type_t[Categorical]:
Expand Down

0 comments on commit 10e23e8

Please sign in to comment.