Skip to content

Commit 1159095

Browse files
committed
tests/cmd/test_git(test[typing]): Narrow constructor param type
why: Keep the test fixture typing aligned with actual callable returns. what: - Replace t.Any return with str | pathlib.Path for path_type
1 parent 896ffd8 commit 1159095

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/cmd/test_git.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
@pytest.mark.parametrize("path_type", [str, pathlib.Path])
2020
def test_git_constructor(
21-
path_type: t.Callable[[str | pathlib.Path], t.Any],
21+
path_type: t.Callable[[str | pathlib.Path], str | pathlib.Path],
2222
tmp_path: pathlib.Path,
2323
) -> None:
2424
"""Test Git constructor."""

0 commit comments

Comments
 (0)