Answer stability round 2: 0 🔴, 1 🟡 (0 misread); the Git protocol takes errors, as git does
This commit is contained in:
+1
-1
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user