@@ -101,42 +101,42 @@ def to_native(
101101 return narwhals_object
102102
103103
104- class SeriesNever (TypedDict , total = False ):
104+ class ExcludeSeries (TypedDict , total = False ):
105105 pass_through : bool
106106 eager_only : bool
107107 series_only : Literal [False ]
108108 allow_series : Literal [False ] | None
109109
110110
111- class SeriesAllow (TypedDict , total = False ):
111+ class AllowSeries (TypedDict , total = False ):
112112 pass_through : bool
113113 eager_only : bool
114114 series_only : Literal [False ]
115115 allow_series : Required [Literal [True ]]
116116
117117
118- class SeriesOnly (TypedDict , total = False ):
118+ class OnlySeries (TypedDict , total = False ):
119119 pass_through : bool
120120 eager_only : bool
121121 series_only : Required [Literal [True ]]
122122 allow_series : bool | None
123123
124124
125- class EagerOnly (TypedDict , total = False ):
125+ class OnlyEager (TypedDict , total = False ):
126126 pass_through : bool
127127 eager_only : Required [Literal [True ]]
128128 series_only : bool
129129 allow_series : bool | None
130130
131131
132- class LazyAllow (TypedDict , total = False ):
132+ class AllowLazy (TypedDict , total = False ):
133133 pass_through : bool
134134 eager_only : Literal [False ]
135135 series_only : Literal [False ]
136136 allow_series : bool | None
137137
138138
139- class EagerLazySeriesAllow (TypedDict , total = False ):
139+ class AllowAny (TypedDict , total = False ):
140140 pass_through : bool
141141 eager_only : Literal [False ]
142142 series_only : Literal [False ]
@@ -164,38 +164,37 @@ def from_native(native_object: LazyFrameT, **kwds: Any) -> LazyFrameT: ...
164164
165165@overload
166166def from_native (
167- native_object : IntoDataFrameT , ** kwds : Unpack [SeriesNever ]
167+ native_object : IntoDataFrameT , ** kwds : Unpack [ExcludeSeries ]
168168) -> DataFrame [IntoDataFrameT ]: ...
169169
170170
171171@overload
172172def from_native (
173- native_object : IntoSeriesT , ** kwds : Unpack [SeriesOnly ]
173+ native_object : IntoSeriesT , ** kwds : Unpack [OnlySeries ]
174174) -> Series [IntoSeriesT ]: ...
175175
176176
177177@overload
178178def from_native (
179- native_object : IntoSeriesT , ** kwds : Unpack [SeriesAllow ]
179+ native_object : IntoSeriesT , ** kwds : Unpack [AllowSeries ]
180180) -> Series [IntoSeriesT ]: ...
181181
182182
183183@overload
184184def from_native (
185- native_object : IntoLazyFrameT , ** kwds : Unpack [LazyAllow ]
185+ native_object : IntoLazyFrameT , ** kwds : Unpack [AllowLazy ]
186186) -> LazyFrame [IntoLazyFrameT ]: ...
187187
188188
189189@overload
190190def from_native (
191- native_object : IntoDataFrameT | IntoSeriesT , ** kwds : Unpack [SeriesAllow ]
191+ native_object : IntoDataFrameT | IntoSeriesT , ** kwds : Unpack [AllowSeries ]
192192) -> DataFrame [IntoDataFrameT ] | Series [IntoSeriesT ]: ...
193193
194194
195195@overload
196196def from_native (
197- native_object : IntoDataFrameT | IntoLazyFrameT | IntoSeriesT ,
198- ** kwds : Unpack [EagerLazySeriesAllow ],
197+ native_object : IntoDataFrameT | IntoLazyFrameT | IntoSeriesT , ** kwds : Unpack [AllowAny ]
199198) -> DataFrame [IntoDataFrameT ] | LazyFrame [IntoLazyFrameT ] | Series [IntoSeriesT ]: ...
200199
201200
0 commit comments