Skip to content

Commit 2610c5e

Browse files
authored
Create simplejson.errors (#6492)
1 parent bb7a06c commit 2610c5e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
__all__ = ["JSONDecodeError"]
2+
3+
def linecol(doc: str, pos: int) -> tuple[int, int]: ...
4+
def errmsg(msg: str, doc: str, pos: int, end: int | None = ...) -> str: ...
5+
6+
class JSONDecodeError(ValueError):
7+
msg: str
8+
doc: str
9+
pos: int
10+
end: int | None
11+
lineno: int
12+
colno: int
13+
endlineno: int | None
14+
endcolno: int | None
15+
def __init__(self, msg: str, doc: str, pos: int, end: int | None = ...) -> None: ...
16+
def __reduce__(self) -> tuple[JSONDecodeError, tuple[str, str, int, int | None]]: ...

0 commit comments

Comments
 (0)