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 170a2c5 commit a218413Copy full SHA for a218413
src/_pytest/pathlib.py
@@ -387,7 +387,7 @@ def resolve_from_str(input: str, rootpath: Path) -> Path:
387
return rootpath.joinpath(input)
388
389
390
-def fnmatch_ex(pattern: str, path) -> bool:
+def fnmatch_ex(pattern: str, path: Union[str, "os.PathLike[str]"]) -> bool:
391
"""A port of FNMatcher from py.path.common which works with PurePath() instances.
392
393
The difference between this algorithm and PurePath.match() is that the
0 commit comments