Skip to content

Commit 6c58ab4

Browse files
Moisanphofl
authored andcommitted
Fix pylint use-a-generator warning (pandas-dev#49562)
1 parent 560a96f commit 6c58ab4

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

pandas/io/formats/css.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def expand(self, prop, value: str) -> Generator[tuple[str, str], None, None]:
107107
for token in tokens:
108108
if token in self.BORDER_STYLES:
109109
border_declarations[f"border{side}-style"] = token
110-
elif any([ratio in token for ratio in self.BORDER_WIDTH_RATIOS]):
110+
elif any(ratio in token for ratio in self.BORDER_WIDTH_RATIOS):
111111
border_declarations[f"border{side}-width"] = token
112112
else:
113113
border_declarations[f"border{side}-color"] = token

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ disable = [
124124
"too-many-statements",
125125
"unnecessary-comprehension",
126126
"unnecessary-list-index-lookup",
127-
"use-a-generator",
128127
"useless-option-value",
129128

130129
# pylint type "W": warning, for python specific problems

0 commit comments

Comments
 (0)