mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-07 10:20:58 +08:00
Add defaults for third-party stubs Q-T (#9959)
This commit is contained in:
@@ -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): ...
|
||||
|
||||
@@ -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]]: ...
|
||||
|
||||
Reference in New Issue
Block a user