mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-06 09:57:41 +08:00
Reparent simplejson from 2 to 2and3 (#2088)
This commit is contained in:
committed by
Jelle Zijlstra
parent
863b9b0886
commit
29bf24b8b9
10
third_party/2/simplejson/__init__.pyi
vendored
10
third_party/2/simplejson/__init__.pyi
vendored
@@ -1,10 +0,0 @@
|
||||
from typing import Any, IO, Text
|
||||
|
||||
from simplejson.scanner import JSONDecodeError as JSONDecodeError
|
||||
from simplejson.decoder import JSONDecoder as JSONDecoder
|
||||
from simplejson.encoder import JSONEncoder as JSONEncoder, JSONEncoderForHTML as JSONEncoderForHTML
|
||||
|
||||
def dumps(obj: Any, *args: Any, **kwds: Any) -> str: ...
|
||||
def dump(obj: Any, fp: IO[str], *args: Any, **kwds: Any) -> None: ...
|
||||
def loads(s: Text, **kwds: Any) -> Any: ...
|
||||
def load(fp: IO[str], **kwds: Any) -> Any: ...
|
||||
6
third_party/2/simplejson/decoder.pyi
vendored
6
third_party/2/simplejson/decoder.pyi
vendored
@@ -1,6 +0,0 @@
|
||||
from typing import Any, Match
|
||||
|
||||
class JSONDecoder(object):
|
||||
def __init__(self, **kwargs): ...
|
||||
def decode(self, s: str, _w: Match[str], _PY3: bool): ...
|
||||
def raw_decode(self, s: str, idx: int, _w: Match[str], _PY3: bool): ...
|
||||
9
third_party/2/simplejson/encoder.pyi
vendored
9
third_party/2/simplejson/encoder.pyi
vendored
@@ -1,9 +0,0 @@
|
||||
from typing import Any, IO
|
||||
|
||||
class JSONEncoder(object):
|
||||
def __init__(self, *args, **kwargs): ...
|
||||
def encode(self, o: Any): ...
|
||||
def default(self, o: Any): ...
|
||||
def iterencode(self, o: Any, _one_shot: bool): ...
|
||||
|
||||
class JSONEncoderForHTML(JSONEncoder): ...
|
||||
11
third_party/2/simplejson/scanner.pyi
vendored
11
third_party/2/simplejson/scanner.pyi
vendored
@@ -1,11 +0,0 @@
|
||||
from typing import Optional
|
||||
|
||||
class JSONDecodeError(ValueError):
|
||||
msg: str = ...
|
||||
doc: str = ...
|
||||
pos: int = ...
|
||||
end: Optional[int] = ...
|
||||
lineno: int = ...
|
||||
colno: int = ...
|
||||
endlineno: Optional[int] = ...
|
||||
endcolno: Optional[int] = ...
|
||||
Reference in New Issue
Block a user