File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ def _iter_columns(self) -> Iterator[Any]: ...
6161
6262class EagerDataFrame (CompliantDataFrame [EagerSeriesT_co ], Protocol [EagerSeriesT_co ]):
6363 def _maybe_evaluate_expr (
64- self , expr : EagerExpr [EagerDataFrame [ EagerSeriesT_co ] , EagerSeriesT_co ] | T , /
64+ self , expr : EagerExpr [Self , EagerSeriesT_co ] | T , /
6565 ) -> EagerSeriesT_co | T :
6666 if is_eager_expr (expr ):
6767 result : Sequence [EagerSeriesT_co ] = expr (self )
@@ -75,7 +75,8 @@ def _maybe_evaluate_expr(
7575 return expr
7676
7777
78- # NOTE: DON'T CHANGE THIS EITHER
78+ # NOTE: `mypy` is requiring the gymnastics here and is very fragile
79+ # DON'T CHANGE THIS or `EagerDataFrame._maybe_evaluate_expr`
7980def is_eager_expr (
8081 obj : EagerExpr [Any , EagerSeriesT ] | Any ,
8182) -> TypeIs [EagerExpr [Any , EagerSeriesT ]]:
You can’t perform that action at this time.
0 commit comments