Skip to content

Commit

Permalink
type-hint fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
rhshadrach committed Sep 25, 2023
1 parent 5daaaed commit c730ddb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -11895,7 +11895,7 @@ def _logical_func(

def any(
self,
axis: Axis = 0,
axis: Axis | None = 0,
bool_only: bool_t = False,
skipna: bool_t = True,
**kwargs,
Expand Down
2 changes: 1 addition & 1 deletion pandas/core/groupby/groupby.py
Original file line number Diff line number Diff line change
Expand Up @@ -5771,7 +5771,7 @@ def _idxmax_idxmin(
assert result_len <= expected_len
has_unobserved = result_len < expected_len

raise_err = not ignore_unobserved and has_unobserved
raise_err: bool | np.bool_ = not ignore_unobserved and has_unobserved
# Only raise an error if there are columns to compute; otherwise we return
# an empty DataFrame with an index (possibly including unobserved) but no
# columns
Expand Down

0 comments on commit c730ddb

Please sign in to comment.