1515from narwhals .spec import IntoExpr
1616from narwhals .spec import LazyFrame as LazyFrameProtocol
1717from narwhals .spec import Namespace as NamespaceProtocol
18- from narwhals .spec import Series as SeriesT
18+ from narwhals .spec import Series as SeriesProtocol
1919from narwhals .utils import flatten_str
2020from narwhals .utils import horizontal_concat
2121from narwhals .utils import parse_into_exprs
@@ -110,7 +110,7 @@ def len(self) -> ExprT:
110110
111111 def _create_expr_from_callable ( # noqa: PLR0913
112112 self ,
113- func : Callable [[DataFrameT | LazyFrameProtocol ], list [SeriesT ]],
113+ func : Callable [[DataFrameT | LazyFrameProtocol ], list [SeriesProtocol ]],
114114 * ,
115115 depth : int ,
116116 function_name : str | None ,
@@ -126,7 +126,9 @@ def _create_expr_from_callable( # noqa: PLR0913
126126 implementation = self ._implementation ,
127127 )
128128
129- def _create_series_from_scalar (self , value : Any , series : SeriesT ) -> SeriesT :
129+ def _create_series_from_scalar (
130+ self , value : Any , series : SeriesProtocol
131+ ) -> SeriesProtocol :
130132 return Series (
131133 series_from_iterable (
132134 [value ],
@@ -138,7 +140,7 @@ def _create_series_from_scalar(self, value: Any, series: SeriesT) -> SeriesT:
138140 implementation = self ._implementation ,
139141 )
140142
141- def _create_expr_from_series (self , series : SeriesT ) -> ExprT :
143+ def _create_expr_from_series (self , series : SeriesProtocol ) -> ExprT :
142144 return Expr (
143145 lambda _df : [series ],
144146 depth = 0 ,
0 commit comments