Skip to content

Commit

Permalink
TYP: remove ignore from pandas/core/groupby/groupby.py (#52543)
Browse files Browse the repository at this point in the history
remove ignore from pandas/core/groupby/groupby.py
  • Loading branch information
natmokval authored Apr 9, 2023
1 parent 3c44745 commit 328a620
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions pandas/core/groupby/groupby.py
Original file line number Diff line number Diff line change
Expand Up @@ -3303,13 +3303,9 @@ def post_processor(

orig_scalar = is_scalar(q)
if orig_scalar:
# error: Incompatible types in assignment (expression has type "List[
# Union[float, ExtensionArray, ndarray[Any, Any], Index, Series]]",
# variable has type "Union[float, Union[Union[ExtensionArray, ndarray[
# Any, Any]], Index, Series]]")
q = [q] # type: ignore[assignment]

qs = np.array(q, dtype=np.float64)
qs = np.array([q], dtype=np.float64)
else:
qs = np.array(q, dtype=np.float64)
ids, _, ngroups = self.grouper.group_info
nqs = len(qs)

Expand Down

0 comments on commit 328a620

Please sign in to comment.