Skip to content

Commit 11b226f

Browse files
committed
Hack mypy
1 parent 4f78a26 commit 11b226f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/interchange/from_dataframe.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,9 +350,9 @@ def string_column_to_ndarray(col: Column) -> tuple[np.ndarray, Any]:
350350
if using_string_dtype():
351351
res = pd.Series(str_list, dtype="str")
352352
else:
353-
res = np.asarray(str_list, dtype="object")
353+
res = np.asarray(str_list, dtype="object") # type: ignore[assignment]
354354

355-
return res, buffers
355+
return res, buffers # type: ignore[return-value]
356356

357357

358358
def parse_datetime_format_str(format_str, data) -> pd.Series | np.ndarray:

0 commit comments

Comments
 (0)