We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f48a469 commit 0ca9eecCopy full SHA for 0ca9eec
src/_pytest/pathlib.py
@@ -711,7 +711,7 @@ def _import_module_using_spec(
711
if module_path.is_dir():
712
# The `spec_from_file_location` matches a loader based on the file extension by default.
713
# For a namespace package, need to manually specify a loader.
714
- loader = NamespaceLoader(name, module_path, PathFinder())
+ loader = NamespaceLoader(name, module_path, PathFinder()) # type: ignore[arg-type]
715
716
spec = importlib.util.spec_from_file_location(
717
module_name, str(module_path), loader=loader
0 commit comments