Answer stability round 2: 0 🔴, 1 🟡 (0 misread); the Git protocol takes errors, as git does

This commit is contained in:
2026-10-28 22:46:41 +01:00
parent 2866b828bc
commit 6a9af88aed
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ def git(*args: str, cwd: str | None = None, timeout: float | None = None, guarde
class Git(typing.Protocol):
"""Runs git as `git` does."""
def __call__(self, *args: str, cwd: str | None = None, timeout: float | None = None, guarded: bool = False) -> str | Failure: ...
def __call__(self, *args: str, cwd: str | None = None, timeout: float | None = None, guarded: bool = False, errors: str = "strict") -> str | Failure: ...
# Runs git with the given arguments, in the checkout and with the options its caller bound, as functools.partial(git, cwd=...) does.