Skip to content

Commit 065baa3

Browse files
committed
TYP: Remove OutputFrameOrSeries
1 parent 8d32d57 commit 065baa3

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

pandas/core/groupby/groupby.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ class providing the base-class of operations.
2929
Literal,
3030
Self,
3131
TypeAlias,
32-
TypeVar,
3332
Union,
3433
cast,
3534
final,
@@ -969,10 +968,6 @@ def __iter__(self) -> Iterator[tuple[Hashable, NDFrameT]]:
969968
return result
970969

971970

972-
# To track operations that expand dimensions, like ohlc
973-
OutputFrameOrSeries = TypeVar("OutputFrameOrSeries", bound=NDFrame)
974-
975-
976971
class GroupBy(BaseGroupBy[NDFrameT]):
977972
"""
978973
Class for grouping and aggregating relational data.
@@ -1194,9 +1189,7 @@ def _concat_objects(
11941189
return result.__finalize__(self.obj, method="groupby")
11951190

11961191
@final
1197-
def _set_result_index_ordered(
1198-
self, result: OutputFrameOrSeries
1199-
) -> OutputFrameOrSeries:
1192+
def _set_result_index_ordered(self, result: NDFrameT) -> NDFrameT:
12001193
# set the result index on the passed values object and
12011194
# return the new object, xref 8046
12021195

0 commit comments

Comments
 (0)