mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-11-13 03:12:37 +03:00
Specify the type of files to make mypy happy (I hope)
This commit is contained in:
parent
7fb2b21a22
commit
fc99d4d757
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -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 .
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user