Skip to content

Commit 007c992

Browse files
committed
break long lines.
1 parent 78ff312 commit 007c992

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

pandas/io/parsers.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1444,7 +1444,9 @@ def _validate_parse_dates_presence(self, columns: List[str]) -> None:
14441444
# DateGroups = List[ColReference]
14451445
# ParseDates = Union[ DateGroups, List[DateGroups],
14461446
# Dict[ColReference, DateGroups]]
1447-
cols_needed = chain.from_iterable([col if isinstance(col, list) else [col] for col in self.parse_dates ])
1447+
cols_needed = chain.from_iterable(
1448+
[col if isinstance(col, list) else [col] for col in self.parse_dates]
1449+
)
14481450
elif isinstance(self.parse_dates, dict):
14491451
cols_needed = list(chain(*self.parse_dates.values()))
14501452
else:

pandas/tests/io/parser/test_parse_dates.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1537,7 +1537,9 @@ def test_hypothesis_delimited_date(date_format, dayfirst, delimiter, test_dateti
15371537
),
15381538
],
15391539
)
1540-
def test_missing_parse_dates_column_raises(all_parsers, names, usecols, parse_dates, missing_cols):
1540+
def test_missing_parse_dates_column_raises(
1541+
all_parsers, names, usecols, parse_dates, missing_cols
1542+
):
15411543
# gh-31251 column names provided in parse_dates could be missing.
15421544
parser = all_parsers
15431545
content = StringIO("date,time,val\n2020-01-31,04:20:32,32\n")

0 commit comments

Comments
 (0)