Add defaults to third-party stubs U-Z (#9971)

This commit is contained in:
Alex Waygood
2023-03-28 18:33:38 +01:00
committed by GitHub
parent 6b485a8823
commit ccc4b7a034
36 changed files with 233 additions and 229 deletions

View File

@@ -5,4 +5,4 @@ from .exceptions import HunkApplyException as HunkApplyException, SubprocessExce
from .snippets import remove as remove, which as which
def apply_patch(diffs: patch.diffobj | Iterable[patch.diffobj]) -> None: ...
def apply_diff(diff: patch.diffobj, text: str | Iterable[str], reverse: bool = ..., use_patch: bool = ...) -> list[str]: ...
def apply_diff(diff: patch.diffobj, text: str | Iterable[str], reverse: bool = False, use_patch: bool = False) -> list[str]: ...

View File

@@ -2,7 +2,7 @@ class WhatThePatchException(Exception): ...
class HunkException(WhatThePatchException):
hunk: int | None
def __init__(self, msg: str, hunk: int | None = ...) -> None: ...
def __init__(self, msg: str, hunk: int | None = None) -> None: ...
class ApplyException(WhatThePatchException): ...