77from narwhals ._compliant .typing import CompliantFrameT
88from narwhals ._compliant .typing import CompliantSeriesOrNativeExprT_co
99from narwhals ._compliant .typing import EagerDataFrameT
10- from narwhals ._compliant .typing import EagerSeriesT
10+ from narwhals ._compliant .typing import EagerExprT
11+ from narwhals ._compliant .typing import EagerSeriesT_co
1112from narwhals .utils import deprecated
1213
1314if TYPE_CHECKING :
1415 from narwhals ._compliant .expr import CompliantExpr
15- from narwhals ._compliant .expr import EagerExpr
1616 from narwhals ._compliant .selectors import CompliantSelectorNamespace
1717 from narwhals .dtypes import DType
1818
@@ -31,25 +31,23 @@ def selectors(self) -> CompliantSelectorNamespace[Any, Any]: ...
3131
3232
3333class EagerNamespace (
34- CompliantNamespace [EagerDataFrameT , EagerSeriesT ],
35- Protocol [EagerDataFrameT , EagerSeriesT ],
34+ CompliantNamespace [EagerDataFrameT , EagerSeriesT_co ],
35+ Protocol [EagerDataFrameT , EagerSeriesT_co , EagerExprT ],
3636):
3737 # NOTE: Supporting moved ops
3838 # - `self_create_expr_from_callable` -> `self._expr._from_callable`
3939 # - `self_create_expr_from_series` -> `self._expr._from_series`
4040 @property
41- def _expr (self ) -> type [EagerExpr [ EagerDataFrameT , EagerSeriesT ] ]: ...
41+ def _expr (self ) -> type [EagerExprT ]: ...
4242
4343 # NOTE: Supporting moved ops
4444 # - `self._create_series_from_scalar` -> `EagerSeries()._from_scalar`
4545 # - Was dependent on a `reference_series`, so is now an instance method
4646 # - `<class>._from_iterable` -> `self._series._from_iterable`
4747 @property
48- def _series (self ) -> type [EagerSeriesT ]: ...
48+ def _series (self ) -> type [EagerSeriesT_co ]: ...
4949
50- def all_horizontal (
51- self , * exprs : EagerExpr [EagerDataFrameT , EagerSeriesT ]
52- ) -> EagerExpr [EagerDataFrameT , EagerSeriesT ]: ...
50+ def all_horizontal (self , * exprs : EagerExprT ) -> EagerExprT : ...
5351
5452 @deprecated ("ref'd in untyped code" )
55- def _create_compliant_series (self , value : Any ) -> EagerSeriesT : ...
53+ def _create_compliant_series (self , value : Any ) -> EagerSeriesT_co : ...
0 commit comments