File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -144,6 +144,7 @@ class NamedAgg(NamedTuple):
144
144
aggfunc : AggScalar
145
145
146
146
147
+ @set_module ("pandas.api.typing" )
147
148
class SeriesGroupBy (GroupBy [Series ]):
148
149
def _wrap_agged_manager (self , mgr : Manager ) -> Series :
149
150
out = self .obj ._constructor_from_mgr (mgr , axes = mgr .axes )
@@ -1557,6 +1558,7 @@ def unique(self) -> Series:
1557
1558
return result
1558
1559
1559
1560
1561
+ @set_module ("pandas.api.typing" )
1560
1562
class DataFrameGroupBy (GroupBy [DataFrame ]):
1561
1563
_agg_examples_doc = dedent (
1562
1564
"""
Original file line number Diff line number Diff line change @@ -421,3 +421,5 @@ def test_set_module():
421
421
assert pd .date_range .__module__ == "pandas"
422
422
assert pd .bdate_range .__module__ == "pandas"
423
423
assert pd .NamedAgg .__module__ == "pandas"
424
+ assert pd .api .typing .SeriesGroupBy .__module__ == "pandas.api.typing"
425
+ assert pd .api .typing .DataFrameGroupBy .__module__ == "pandas.api.typing"
You can’t perform that action at this time.
0 commit comments