Skip to content

Commit d0d08a9

Browse files
Update to the fix
1 parent f2e6e38 commit d0d08a9

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

pandas-stubs/core/frame.pyi

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ from typing import (
1515
Generic,
1616
Literal,
1717
TypeVar,
18-
Union,
1918
overload,
2019
)
2120

@@ -236,13 +235,10 @@ class _LocIndexerFrame(_LocIndexer):
236235
value: Scalar | NAType | NaTType | ArrayLike | Series | list | None,
237236
) -> None: ...
238237

239-
TT = TypeVar("TT", bound=Union[Literal[True], Literal[False]])
238+
_TT = TypeVar("TT", bound=Literal[True, False])
240239

241-
class DataFrameGroupByGen(DataFrameGroupBy[ByT], Generic[ByT, TT]):
242-
pass
243-
244-
class SeriesGroupByGen(SeriesGroupBy, Generic[TT, ByT]):
245-
pass
240+
class DataFrameGroupByGen(DataFrameGroupBy[ByT], Generic[ByT, _TT]): ...
241+
class SeriesGroupByGen(SeriesGroupBy, Generic[_TT, ByT]): ...
246242

247243
class DataFrame(NDFrame, OpsMixin):
248244
__hash__: ClassVar[None] # type: ignore[assignment]

0 commit comments

Comments
 (0)