File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -468,12 +468,8 @@ def _hash_categories(self) -> int:
468
468
# error: Incompatible types in assignment (expression has type
469
469
# "List[ndarray]", variable has type "ndarray")
470
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 )
471
+ combined_hashed = combine_hash_arrays (iter (cat_array ), num_items = len (cat_array ))
472
+ return np .bitwise_xor .reduce (combined_hashed )
477
473
478
474
@classmethod
479
475
def construct_array_type (cls ) -> type_t [Categorical ]:
You can’t perform that action at this time.
0 commit comments