Skip to content

Commit 0ca9eec

Browse files
[mypy] noqa false positive in NamespaceLoader
1 parent f48a469 commit 0ca9eec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_pytest/pathlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ def _import_module_using_spec(
711711
if module_path.is_dir():
712712
# The `spec_from_file_location` matches a loader based on the file extension by default.
713713
# For a namespace package, need to manually specify a loader.
714-
loader = NamespaceLoader(name, module_path, PathFinder())
714+
loader = NamespaceLoader(name, module_path, PathFinder()) # type: ignore[arg-type]
715715

716716
spec = importlib.util.spec_from_file_location(
717717
module_name, str(module_path), loader=loader

0 commit comments

Comments
 (0)