Bump pycln and pathspec test dependencies (#10251)

This commit is contained in:
Alex Waygood
2023-06-03 14:46:33 +01:00
committed by GitHub
parent b25150aa30
commit d8ef303e00
3 changed files with 4 additions and 6 deletions

View File

@@ -134,6 +134,4 @@ def spec_matches_path(spec: pathspec.PathSpec, path: Path) -> bool:
normalized_path = path.as_posix()
if path.is_dir():
normalized_path += "/"
# pathspec.PathSpec.match_file has partially Unknown file parameter
# https://github.com/cpburnz/python-pathspec/pull/75
return spec.match_file(normalized_path) # pyright: ignore[reportUnknownMemberType]
return spec.match_file(normalized_path)