blob: 4e03d09cf6dcd1605db1baee94fc2b765076b575 [file] [log] [blame]
koder aka kdanilov7f59d562016-12-26 01:34:23 +02001from typing import Union, List, Dict, Any
koder aka kdanilov22d134e2016-11-08 11:33:19 +02002
3
4Basic = Union[List, Dict[str, Any]]
5
6
koder aka kdanilov39e449e2016-12-17 15:15:26 +02007class Loader: ...
8class Dumper: ...
koder aka kdanilov22d134e2016-11-08 11:33:19 +02009class CLoader: ...
koder aka kdanilov39e449e2016-12-17 15:15:26 +020010class CDumper: ...
koder aka kdanilov22d134e2016-11-08 11:33:19 +020011
koder aka kdanilov39e449e2016-12-17 15:15:26 +020012def load(data: bytes, Loader: Any = None, encoding: str = 'utf8') -> Any: ...
koder aka kdanilov7f59d562016-12-26 01:34:23 +020013def dump(data: Any, Dumper: Any = None, encoding: str = 'utf8') -> bytes: ...
14def safe_load(data: bytes, encoding: str = 'utf8') -> Any: ...
15def safe_dump(data: Any, encoding: str = 'utf8') -> bytes: ...