massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / simplejson / simplejson / __init__.pyi
1 from typing import IO, Any, Text, Union
2
3 from simplejson.decoder import JSONDecoder as JSONDecoder
4 from simplejson.encoder import JSONEncoder as JSONEncoder, JSONEncoderForHTML as JSONEncoderForHTML
5 from simplejson.raw_json import RawJSON as RawJSON
6 from simplejson.scanner import JSONDecodeError as JSONDecodeError
7
8 _LoadsString = Union[Text, bytes, bytearray]
9
10 def dumps(obj: Any, *args: Any, **kwds: Any) -> str: ...
11 def dump(obj: Any, fp: IO[str], *args: Any, **kwds: Any) -> None: ...
12 def loads(s: _LoadsString, **kwds: Any) -> Any: ...
13 def load(fp: IO[str], **kwds: Any) -> Any: ...