summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2022-03-29 21:43:10 +0200
committerFlorian Bruhin <me@the-compiler.org>2022-03-29 21:43:10 +0200
commit60c310f7bd3749457f74cacf029c53da196a2d52 (patch)
tree2e9563b2afe71fdaf3c7cc6e55635a232405dad7
parent562f358050ef1c40dda441809561330c9127a928 (diff)
downloadqutebrowser-60c310f7bd3749457f74cacf029c53da196a2d52.tar.gz
qutebrowser-60c310f7bd3749457f74cacf029c53da196a2d52.zip
Fix mypy
-rw-r--r--qutebrowser/utils/resources.py1
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