From 8b851437fe696bedada53aa2ee82c9059c3fff72 Mon Sep 17 00:00:00 2001 From: elvis kahoro Date: Fri, 26 Aug 2022 23:57:06 -0400 Subject: [PATCH] cleaning --- scripts/gen_theme_previews.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/gen_theme_previews.py b/scripts/gen_theme_previews.py index 7c8caec..79db569 100644 --- a/scripts/gen_theme_previews.py +++ b/scripts/gen_theme_previews.py @@ -12,8 +12,7 @@ import yaml def get_all_input_files(input_dir: str) -> List[str]: filenames: Any = next(os.walk(input_dir), (None, None, []))[2] - files: Any = filter(lambda f: (f.endswith("yaml") or f.endswith("yml")), filenames) - return list(files) + return list(filter(lambda f: (f.endswith("yaml") or f.endswith("yml")), filenames)) def ensure_output_dir(output_dir: str): @@ -22,7 +21,10 @@ def ensure_output_dir(output_dir: str): def add_color_to_dict( - output: Dict[str, str], obj: Dict[str, str], key: str, prefix: Optional[str] = None + output: Dict[str, str], + obj: Dict[str, str], + key: str, + prefix: Optional[str] = None, ): if not prefix: prefix = ""