Add defaults for third-party stubs Q-T (#9959)

This commit is contained in:
Alex Waygood
2023-03-28 12:16:31 +01:00
committed by GitHub
parent 72456da2a3
commit b69b17c3d8
274 changed files with 3918 additions and 3735 deletions

View File

@@ -5,6 +5,6 @@ class JSONEncoder:
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
def encode(self, o: Any) -> str: ...
def default(self, o: Any) -> NoReturn: ...
def iterencode(self, o: Any, _one_shot: bool = ...) -> Iterator[str]: ...
def iterencode(self, o: Any, _one_shot: bool = False) -> Iterator[str]: ...
class JSONEncoderForHTML(JSONEncoder): ...

View File

@@ -1,7 +1,7 @@
__all__ = ["JSONDecodeError"]
def linecol(doc: str, pos: int) -> tuple[int, int]: ...
def errmsg(msg: str, doc: str, pos: int, end: int | None = ...) -> str: ...
def errmsg(msg: str, doc: str, pos: int, end: int | None = None) -> str: ...
class JSONDecodeError(ValueError):
msg: str
@@ -12,5 +12,5 @@ class JSONDecodeError(ValueError):
colno: int
endlineno: int | None
endcolno: int | None
def __init__(self, msg: str, doc: str, pos: int, end: int | None = ...) -> None: ...
def __init__(self, msg: str, doc: str, pos: int, end: int | None = None) -> None: ...
def __reduce__(self) -> tuple[JSONDecodeError, tuple[str, str, int, int | None]]: ...