Skip to content

Commit 61fed78

Browse files
committed
STY: Fix bad check
1 parent e6499b1 commit 61fed78

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

pandas_datareader/famafrench.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,12 @@ def _read_one_data(self, url, params):
8787
else:
8888
c = ["Count"]
8989
r = list(range(0, 105, 5))
90-
kwargs = {} if PYTHON_LT_3_10 else {"strict": False}
91-
params["names"] = ["Date"] + c + list(zip(r, r[1:], **kwargs))
90+
91+
if PYTHON_LT_3_10:
92+
additional_params = list(zip(r, r[1:])) # noqa: B905
93+
else:
94+
additional_params = list(zip(r, r[1:], strict=False))
95+
params["names"] = ["Date"] + c + additional_params
9296

9397
if self.symbols != "Prior_2-12_Breakpoints":
9498
params["skiprows"] = 1

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ ignore = ["E203", "E266", "E501", "W503"]
8585
max-line-length = 88
8686
max-complexity = 18
8787
select = ["B","C","E","F","W","T4","B9"]
88+
exclude = ./pandas_datareader/_version.py
8889

8990
[tool.black]
9091
target-version = ["py38", "py39", "py310","py311","py312"]

0 commit comments

Comments
 (0)