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_pathlike if isinstance(blob_pathlike, Path) else Path(blob_pathlike)
+ blob_path = Path(blob_pathlike)
62
for pathlike in self.paths:
63
- path: Path = pathlike if isinstance(pathlike, Path) else Path(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