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 24abf10 commit ad1ae5fCopy full SHA for ad1ae5f
git/index/typ.py
@@ -58,9 +58,9 @@ def __init__(self, paths: Sequence[PathLike]) -> None:
58
59
def__call__(self, stage_blob: Tuple[StageType, Blob]) ->bool:
60
blob_pathlike: PathLike=stage_blob[1].path
61
-blob_path: Path=blob_pathlikeifisinstance(blob_pathlike, Path) elsePath(blob_pathlike)
+blob_path=Path(blob_pathlike)
62
forpathlikeinself.paths:
63
-path: Path=pathlikeifisinstance(pathlike, Path) elsePath(pathlike)
+path=Path(pathlike)
64
# TODO: Change to use `PosixPath.is_relative_to` once Python 3.8 is no
65
# longer supported.
66
filter_parts=path.parts
0 commit comments