Skip to content

Commit 87758bf

Browse files
committed
Typing issues
1 parent cbf29f2 commit 87758bf

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

pandas/io/parsers/python_parser.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ def _convert_to_ndarrays(
419419
if c in parse_date_cols:
420420
# GH#26203 Do not convert columns which get converted to dates
421421
# but replace nans to ensure to_datetime works
422-
mask = algorithms.isin(values, set(col_na_values) | col_na_fvalues)
422+
mask = algorithms.isin(values, set(col_na_values) | col_na_fvalues) # pyright: ignore[reportArgumentType]
423423
np.putmask(values, mask, np.nan)
424424
result[c] = values
425425
continue
@@ -519,9 +519,9 @@ def _cast_types(self, values: ArrayLike, cast_type: DtypeObj, column) -> ArrayLi
519519
return array_type._from_sequence_of_strings( # type: ignore[call-arg]
520520
values_str,
521521
dtype=cast_type,
522-
true_values=self.true_values,
523-
false_values=self.false_values,
524-
none_values=self.na_values,
522+
true_values=self.true_values, # pyright: ignore[reportCallIssue]
523+
false_values=self.false_values, # pyright: ignore[reportCallIssue]
524+
none_values=self.na_values, # pyright: ignore[reportCallIssue]
525525
)
526526
else:
527527
return array_type._from_sequence_of_strings(values, dtype=cast_type)

pandas/tests/io/parser/test_network.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ def tips_df(datapath):
7575

7676

7777
@pytest.mark.single_cpu
78+
@pytest.mark.network
7879
@pytest.mark.usefixtures("s3_resource")
7980
@td.skip_if_not_us_locale()
8081
class TestS3:

0 commit comments

Comments
 (0)