File tree 4 files changed +4
-4
lines changed
4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -515,7 +515,7 @@ def tolist(self) -> list:
515
515
if self .ndim > 1 :
516
516
return [x .tolist () for x in self ]
517
517
dtype = None if self ._hasna else self ._data .dtype
518
- return self .to_numpy (dtype = dtype , na_value = libmissing .NA ).tolist () # type: ignore[return-value]
518
+ return self .to_numpy (dtype = dtype , na_value = libmissing .NA ).tolist ()
519
519
520
520
@overload
521
521
def astype (self , dtype : npt .DTypeLike , copy : bool = ...) -> np .ndarray : ...
Original file line number Diff line number Diff line change @@ -875,7 +875,7 @@ def tolist(self) -> list:
875
875
>>> idx.to_list()
876
876
[1, 2, 3]
877
877
"""
878
- return self ._values .tolist () # type: ignore[return-value]
878
+ return self ._values .tolist ()
879
879
880
880
to_list = tolist
881
881
Original file line number Diff line number Diff line change @@ -2142,7 +2142,7 @@ def _wrap_applied_output_series(
2142
2142
2143
2143
if stacked_values .dtype == object :
2144
2144
# We'll have the DataFrame constructor do inference
2145
- stacked_values = stacked_values .tolist () # type: ignore[assignment]
2145
+ stacked_values = stacked_values .tolist ()
2146
2146
result = self .obj ._constructor (stacked_values , index = index , columns = columns )
2147
2147
2148
2148
if not self .as_index :
Original file line number Diff line number Diff line change @@ -1495,7 +1495,7 @@ def _format_strings(self) -> list[str]:
1495
1495
fmt_values = values ._format_native_types (
1496
1496
na_rep = self .nat_rep , date_format = self .date_format
1497
1497
)
1498
- return fmt_values .tolist () # type: ignore[return-value]
1498
+ return fmt_values .tolist ()
1499
1499
1500
1500
1501
1501
class _ExtensionArrayFormatter (_GenericArrayFormatter ):
You can’t perform that action at this time.
0 commit comments