Skip to content

Commit 13c5850

Browse files
GH1222 PR feedback
1 parent 8f44221 commit 13c5850

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pandas-stubs/_typing.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,7 @@ IndexKeyFunc: TypeAlias = Callable[[Index], Index | AnyArrayLike] | None
514514

515515
# types of `func` kwarg for DataFrame.aggregate and Series.aggregate
516516
# More specific than what is in pandas
517+
# following Union is here to make it ty compliant https://github.com/astral-sh/ty/issues/591
517518
AggFuncTypeBase: TypeAlias = Union[Callable, str, np.ufunc] # noqa: UP007
518519
AggFuncTypeDictSeries: TypeAlias = Mapping[HashableT, AggFuncTypeBase]
519520
AggFuncTypeDictFrame: TypeAlias = Mapping[

0 commit comments

Comments
 (0)