mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-03 10:03:32 +08:00
Add defaults to third-party stubs U-Z (#9971)
This commit is contained in:
@@ -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]: ...
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user