mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Create simplejson.errors (#6492)
This commit is contained in:
16
stubs/simplejson/simplejson/errors.pyi
Normal file
16
stubs/simplejson/simplejson/errors.pyi
Normal file
@@ -0,0 +1,16 @@
|
||||
__all__ = ["JSONDecodeError"]
|
||||
|
||||
def linecol(doc: str, pos: int) -> tuple[int, int]: ...
|
||||
def errmsg(msg: str, doc: str, pos: int, end: int | None = ...) -> str: ...
|
||||
|
||||
class JSONDecodeError(ValueError):
|
||||
msg: str
|
||||
doc: str
|
||||
pos: int
|
||||
end: int | None
|
||||
lineno: int
|
||||
colno: int
|
||||
endlineno: int | None
|
||||
endcolno: int | None
|
||||
def __init__(self, msg: str, doc: str, pos: int, end: int | None = ...) -> None: ...
|
||||
def __reduce__(self) -> tuple[JSONDecodeError, tuple[str, str, int, int | None]]: ...
|
||||
Reference in New Issue
Block a user