diff options
author | Florian Bruhin <me@the-compiler.org> | 2022-03-29 21:43:10 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2022-03-29 21:43:10 +0200 |
commit | 60c310f7bd3749457f74cacf029c53da196a2d52 (patch) | |
tree | 2e9563b2afe71fdaf3c7cc6e55635a232405dad7 | |
parent | 562f358050ef1c40dda441809561330c9127a928 (diff) | |
download | qutebrowser-60c310f7bd3749457f74cacf029c53da196a2d52.tar.gz qutebrowser-60c310f7bd3749457f74cacf029c53da196a2d52.zip |
Fix mypy
-rw-r--r-- | qutebrowser/utils/resources.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qutebrowser/utils/resources.py b/qutebrowser/utils/resources.py index f9b59661e..d664498a7 100644 --- a/qutebrowser/utils/resources.py +++ b/qutebrowser/utils/resources.py @@ -86,6 +86,7 @@ def _glob( glob_path = resource_path / subdir if isinstance(resource_path, pathlib.Path): + assert isinstance(glob_path, pathlib.Path) for full_path in glob_path.glob(f'*{ext}'): # . is contained in ext yield full_path.relative_to(resource_path).as_posix() else: # zipfile.Path or importlib_resources.abc.Traversable |