From fc99d4d7578fb77ab58afeebae2c75d8cdbf6023 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 9 Jun 2021 08:24:36 +0530 Subject: [PATCH] Specify the type of files to make mypy happy (I hope) --- .github/workflows/ci.yml | 2 +- kitty/complete.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4f78def4a..32b8f7c1c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -76,7 +76,7 @@ jobs: python-version: 3.8 - name: Install build-only deps - run: pip install flake8 mypy types-requests types-docutils types-docutils sphinx + run: pip install flake8 mypy types-requests types-docutils sphinx - name: Run pyflakes run: python -m flake8 --count . diff --git a/kitty/complete.py b/kitty/complete.py index 804255c40..cb8f67b4d 100644 --- a/kitty/complete.py +++ b/kitty/complete.py @@ -385,7 +385,7 @@ def complete_files_and_dirs( add_prefix: Optional[str] = None ) -> None: dirs, files_ = path_completion(prefix or '') - files = filter(predicate, files_) + files: Iterable[str] = filter(predicate, files_) if add_prefix: dirs = list(add_prefix + x for x in dirs) files = (add_prefix + x for x in files)