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 0eee459 commit ae395cbCopy full SHA for ae395cb
1 file changed
lib/ts_utils/utils.py
@@ -261,12 +261,12 @@ def close(self: TemporaryFileWrapper[str]) -> None:
261
262
263
@functools.cache
264
-def get_gitignore_spec() -> pathspec.PathSpec:
+def get_gitignore_spec() -> pathspec.GitIgnoreSpec:
265
with GITIGNORE_PATH.open(encoding="UTF-8") as f:
266
return pathspec.GitIgnoreSpec.from_lines(f)
267
268
269
-def spec_matches_path(spec: pathspec.PathSpec, path: Path) -> bool:
+def spec_matches_path(spec: pathspec.PathSpec[Any], path: Path) -> bool:
270
normalized_path = path.as_posix()
271
if path.is_dir():
272
normalized_path += "/"
0 commit comments