Skip to content

Commit 328a620

Browse files
authored
TYP: remove ignore from pandas/core/groupby/groupby.py (#52543)
remove ignore from pandas/core/groupby/groupby.py
1 parent 3c44745 commit 328a620

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

pandas/core/groupby/groupby.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3303,13 +3303,9 @@ def post_processor(
33033303

33043304
orig_scalar = is_scalar(q)
33053305
if orig_scalar:
3306-
# error: Incompatible types in assignment (expression has type "List[
3307-
# Union[float, ExtensionArray, ndarray[Any, Any], Index, Series]]",
3308-
# variable has type "Union[float, Union[Union[ExtensionArray, ndarray[
3309-
# Any, Any]], Index, Series]]")
3310-
q = [q] # type: ignore[assignment]
3311-
3312-
qs = np.array(q, dtype=np.float64)
3306+
qs = np.array([q], dtype=np.float64)
3307+
else:
3308+
qs = np.array(q, dtype=np.float64)
33133309
ids, _, ngroups = self.grouper.group_info
33143310
nqs = len(qs)
33153311

0 commit comments

Comments
 (0)