blob: 4f231f5c13b9e71b1c29fa5f16f5c9ec482bf153 [file] [log] [blame]
koder aka kdanilov22d134e2016-11-08 11:33:19 +02001from typing import Union, List, Dict, Any, IO
2
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 +020012# def load(stream: IO, loader: Any) -> Any: ...
13def load(data: bytes, Loader: Any = None, encoding: str = 'utf8') -> Any: ...
14def dump(data: str, Dumper: Any = None, encoding: str = 'utf8') -> bytes: ...