Skip to content

Commit 587ad7e

Browse files
committed
Added type-hints to _python_apply_general
1 parent 3c3492f commit 587ad7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/groupby/groupby.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class providing the base-class of operations.
3535

3636
from pandas._libs import Timestamp
3737
import pandas._libs.groupby as libgroupby
38-
from pandas._typing import FrameOrSeries, Scalar
38+
from pandas._typing import F, FrameOrSeries, Scalar
3939
from pandas.compat import set_function_name
4040
from pandas.compat.numpy import function as nv
4141
from pandas.errors import AbstractMethodError
@@ -851,7 +851,7 @@ def f(g):
851851

852852
return result
853853

854-
def _python_apply_general(self, f, data):
854+
def _python_apply_general(self, f: F, data: Union[DataFrame, Series]):
855855
"""
856856
Apply function f in python space
857857

0 commit comments

Comments
 (0)