Skip to content

Commit a218413

Browse files
committed
pathlib: missing type annotation for fnmatch_ex
1 parent 170a2c5 commit a218413

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
@@ -387,7 +387,7 @@ def resolve_from_str(input: str, rootpath: Path) -> Path:
387387
return rootpath.joinpath(input)
388388

389389

390-
def fnmatch_ex(pattern: str, path) -> bool:
390+
def fnmatch_ex(pattern: str, path: Union[str, "os.PathLike[str]"]) -> bool:
391391
"""A port of FNMatcher from py.path.common which works with PurePath() instances.
392392
393393
The difference between this algorithm and PurePath.match() is that the

0 commit comments

Comments
 (0)