@@ -595,24 +595,22 @@ IndexKeyFunc: TypeAlias = Callable[[Index], Index | AnyArrayLike] | None
595595
596596# types of `func` kwarg for DataFrame.aggregate and Series.aggregate
597597# More specific than what is in pandas
598- AggFuncTypeBase : TypeAlias = ( # pyright: ignore[reportUnknownVariableType]
599- Callable | str | np .ufunc
600- )
598+ AggFuncTypeBase : TypeAlias = Callable [..., Any ] | str | np .ufunc
601599AggFuncTypeDictSeries : TypeAlias = Mapping [HashableT , AggFuncTypeBase ]
602600AggFuncTypeDictFrame : TypeAlias = Mapping [
603601 HashableT , AggFuncTypeBase | list [AggFuncTypeBase ]
604602]
605- AggFuncTypeSeriesToFrame : TypeAlias = ( # pyright: ignore[reportUnknownVariableType]
606- list [AggFuncTypeBase ] | AggFuncTypeDictSeries
603+ AggFuncTypeSeriesToFrame : TypeAlias = (
604+ list [AggFuncTypeBase ] | AggFuncTypeDictSeries [ HashableT ]
607605)
608- AggFuncTypeFrame : TypeAlias = ( # pyright: ignore[reportUnknownVariableType]
609- AggFuncTypeBase | list [AggFuncTypeBase ] | AggFuncTypeDictFrame
606+ AggFuncTypeFrame : TypeAlias = (
607+ AggFuncTypeBase | list [AggFuncTypeBase ] | AggFuncTypeDictFrame [ HashableT ]
610608)
611- AggFuncTypeDict : TypeAlias = ( # pyright: ignore[reportUnknownVariableType]
612- AggFuncTypeDictSeries | AggFuncTypeDictFrame
609+ AggFuncTypeDict : TypeAlias = (
610+ AggFuncTypeDictSeries [ HashableT ] | AggFuncTypeDictFrame [ HashableT ]
613611)
614- AggFuncType : TypeAlias = ( # pyright: ignore[reportUnknownVariableType]
615- AggFuncTypeBase | list [AggFuncTypeBase ] | AggFuncTypeDict
612+ AggFuncType : TypeAlias = (
613+ AggFuncTypeBase | list [AggFuncTypeBase ] | AggFuncTypeDict [ HashableT ]
616614)
617615
618616# Not used in stubs
0 commit comments