From 00b82b6d023eea7575684700125135a1532b4d49 Mon Sep 17 00:00:00 2001 From: Thierry Moisan Date: Sun, 6 Nov 2022 21:59:10 -0500 Subject: [PATCH] Fix pylint use-a-generator warning --- pandas/io/formats/css.py | 2 +- pyproject.toml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/pandas/io/formats/css.py b/pandas/io/formats/css.py index 4328683875223..4b5b178445c38 100644 --- a/pandas/io/formats/css.py +++ b/pandas/io/formats/css.py @@ -107,7 +107,7 @@ def expand(self, prop, value: str) -> Generator[tuple[str, str], None, None]: for token in tokens: if token in self.BORDER_STYLES: border_declarations[f"border{side}-style"] = token - elif any([ratio in token for ratio in self.BORDER_WIDTH_RATIOS]): + elif any(ratio in token for ratio in self.BORDER_WIDTH_RATIOS): border_declarations[f"border{side}-width"] = token else: border_declarations[f"border{side}-color"] = token diff --git a/pyproject.toml b/pyproject.toml index 397f74ddab71a..18150f8d5220e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -124,7 +124,6 @@ disable = [ "too-many-statements", "unnecessary-comprehension", "unnecessary-list-index-lookup", - "use-a-generator", "useless-option-value", # pylint type "W": warning, for python specific problems