4444 from narwhals ._arrow .typing import ArrowArray
4545 from narwhals ._arrow .typing import ArrowChunkedArray
4646 from narwhals ._arrow .typing import Incomplete
47- from narwhals ._arrow .typing import Indices
47+ from narwhals ._arrow .typing import Indices # type: ignore[attr-defined]
4848 from narwhals ._arrow .typing import NullPlacement
49- from narwhals ._arrow .typing import Order
49+ from narwhals ._arrow .typing import Order # type: ignore[attr-defined]
5050 from narwhals ._arrow .typing import TieBreaker
5151 from narwhals ._arrow .typing import _AsPyType
5252 from narwhals ._arrow .typing import _BasicDataType
@@ -164,19 +164,19 @@ def __ne__(self: Self, other: object) -> Self: # type: ignore[override]
164164
165165 def __ge__ (self : Self , other : Any ) -> Self :
166166 ser , other = extract_native (self , other )
167- return self ._from_native_series (pc .greater_equal (ser , other )) # type: ignore[arg-type]
167+ return self ._from_native_series (pc .greater_equal (ser , other ))
168168
169169 def __gt__ (self : Self , other : Any ) -> Self :
170170 ser , other = extract_native (self , other )
171- return self ._from_native_series (pc .greater (ser , other )) # type: ignore[arg-type]
171+ return self ._from_native_series (pc .greater (ser , other ))
172172
173173 def __le__ (self : Self , other : Any ) -> Self :
174174 ser , other = extract_native (self , other )
175- return self ._from_native_series (pc .less_equal (ser , other )) # type: ignore[arg-type]
175+ return self ._from_native_series (pc .less_equal (ser , other ))
176176
177177 def __lt__ (self : Self , other : Any ) -> Self :
178178 ser , other = extract_native (self , other )
179- return self ._from_native_series (pc .less (ser , other )) # type: ignore[arg-type]
179+ return self ._from_native_series (pc .less (ser , other ))
180180
181181 def __and__ (self : Self , other : Any ) -> Self :
182182 ser , other = extract_native (self , other )
@@ -196,24 +196,24 @@ def __ror__(self: Self, other: Any) -> Self:
196196
197197 def __add__ (self : Self , other : Any ) -> Self :
198198 ser , other = extract_native (self , other )
199- return self ._from_native_series (pc .add (ser , other )) # type: ignore[arg-type]
199+ return self ._from_native_series (pc .add (ser , other ))
200200
201201 def __radd__ (self : Self , other : Any ) -> Self :
202- return self + other # type: ignore[no-any-return]
202+ return self + other
203203
204204 def __sub__ (self : Self , other : Any ) -> Self :
205205 ser , other = extract_native (self , other )
206206 return self ._from_native_series (pc .subtract (ser , other ))
207207
208208 def __rsub__ (self : Self , other : Any ) -> Self :
209- return (self - other ) * (- 1 ) # type: ignore[no-any-return]
209+ return (self - other ) * (- 1 )
210210
211211 def __mul__ (self : Self , other : Any ) -> Self :
212212 ser , other = extract_native (self , other )
213213 return self ._from_native_series (pc .multiply (ser , other ))
214214
215215 def __rmul__ (self : Self , other : Any ) -> Self :
216- return self * other # type: ignore[no-any-return]
216+ return self * other
217217
218218 def __pow__ (self : Self , other : Any ) -> Self :
219219 ser , other = extract_native (self , other )
@@ -381,10 +381,12 @@ def __narwhals_series__(self: Self) -> Self:
381381 def __getitem__ (self : Self , idx : int ) -> Any : ...
382382
383383 @overload
384- def __getitem__ (self : Self , idx : slice | Sequence [int ] | pa .ChunkedArray ) -> Self : ...
384+ def __getitem__ (
385+ self : Self , idx : slice | Sequence [int ] | ArrowChunkedArray
386+ ) -> Self : ...
385387
386388 def __getitem__ (
387- self : Self , idx : int | slice | Sequence [int ] | pa . ChunkedArray
389+ self : Self , idx : int | slice | Sequence [int ] | ArrowChunkedArray
388390 ) -> Any | Self :
389391 if isinstance (idx , int ):
390392 return maybe_extract_py_scalar (
@@ -630,7 +632,7 @@ def sample(
630632 rng = np .random .default_rng (seed = seed )
631633 idx = np .arange (0 , num_rows )
632634 mask = rng .choice (idx , size = n , replace = with_replacement )
633- return self ._from_native_series (ser .take (mask ))
635+ return self ._from_native_series (ser .take (mask )) # pyright: ignore[reportArgumentType]
634636
635637 def fill_null (
636638 self : Self ,
@@ -690,7 +692,7 @@ def to_frame(self: Self) -> ArrowDataFrame:
690692 validate_column_names = False ,
691693 )
692694
693- def to_pandas (self : Self ) -> pd .Series :
695+ def to_pandas (self : Self ) -> pd .Series [ Any ] :
694696 import pandas as pd # ignore-banned-import()
695697
696698 return pd .Series (self ._native_series , name = self .name ) # pyright: ignore[reportArgumentType, reportCallIssue]
0 commit comments