Specify the type of files to make mypy happy (I hope)

This commit is contained in:
Kovid Goyal 2021-06-09 08:24:36 +05:30
parent 7fb2b21a22
commit fc99d4d757
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 2 additions and 2 deletions

View File

@ -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 .

View File

@ -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)