summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRan Benita <ran@unusedvar.com>2020-12-19 14:51:23 +0200
committerRan Benita <ran@unusedvar.com>2020-12-22 21:08:25 +0200
commita21841300826fd67b43e5bb3ff1a04e11759dcc1 (patch)
tree998a82753caa809261776ac2d7e4d08cabeac89a /src
parent170a2c50408c551c31dbe51e9572c174d0c5cdde (diff)
downloadpytest-a21841300826fd67b43e5bb3ff1a04e11759dcc1.tar.gz
pathlib: missing type annotation for fnmatch_ex
Diffstat (limited to 'src')
-rw-r--r--src/_pytest/pathlib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/_pytest/pathlib.py b/src/_pytest/pathlib.py
index 2e452eb1c..d3908a3fd 100644
--- a/src/_pytest/pathlib.py
+++ b/src/_pytest/pathlib.py
@@ -387,7 +387,7 @@ def resolve_from_str(input: str, rootpath: Path) -> Path:
return rootpath.joinpath(input)
-def fnmatch_ex(pattern: str, path) -> bool:
+def fnmatch_ex(pattern: str, path: Union[str, "os.PathLike[str]"]) -> bool:
"""A port of FNMatcher from py.path.common which works with PurePath() instances.
The difference between this algorithm and PurePath.match() is that the