File tree 2 files changed +3
-10
lines changed
2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -421,13 +421,8 @@ def __init__(
421
421
if null_mask .any ():
422
422
# We remove null values here, then below will re-insert
423
423
# them, grep "full_codes"
424
-
425
- # error: Incompatible types in assignment (expression has type
426
- # "List[Any]", variable has type "ExtensionArray")
427
- arr = [ # type: ignore[assignment]
428
- values [idx ] for idx in np .where (~ null_mask )[0 ]
429
- ]
430
- arr = sanitize_array (arr , None )
424
+ arr_list = [values [idx ] for idx in np .where (~ null_mask )[0 ]]
425
+ arr = sanitize_array (arr_list , None )
431
426
values = arr
432
427
433
428
if dtype .categories is None :
Original file line number Diff line number Diff line change @@ -465,9 +465,7 @@ def _hash_categories(self) -> int:
465
465
[cat_array , np .arange (len (cat_array ), dtype = cat_array .dtype )]
466
466
)
467
467
else :
468
- # error: Incompatible types in assignment (expression has type
469
- # "List[ndarray]", variable has type "ndarray")
470
- cat_array = [cat_array ] # type: ignore[assignment]
468
+ cat_array = np .array ([cat_array ])
471
469
combined_hashed = combine_hash_arrays (iter (cat_array ), num_items = len (cat_array ))
472
470
return np .bitwise_xor .reduce (combined_hashed )
473
471
You can’t perform that action at this time.
0 commit comments