Skip to content

Commit 708a9b1

Browse files
authored
fix NamedAgg aggfunc should be AggScalar (#128)
1 parent 9f1ab6e commit 708a9b1

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pandas/core/groupby/generic.pyi

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,11 @@ if sys.version_info >= (3, 8):
1212
else:
1313
from typing_extensions import Literal
1414

15-
class NamedAgg(NamedTuple):
16-
column: str = ...
17-
aggfunc: AggFuncType = ...
18-
1915
AggScalar = Union[str, Callable[..., Any]]
2016
ScalarResult = ...
17+
class NamedAgg(NamedTuple):
18+
column: str = ...
19+
aggfunc: AggScalar = ...
2120

2221
def generate_property(name: str, klass: Type[FrameOrSeries]) : ...
2322
def pin_whitelisted_properties(klass: Type[FrameOrSeries], whitelist: FrozenSet[str]) : ...

0 commit comments

Comments
 (0)