koder aka kdanilov | 7f59d56 | 2016-12-26 01:34:23 +0200 | [diff] [blame] | 1 | from typing import Union, List, Dict, Any |
koder aka kdanilov | 22d134e | 2016-11-08 11:33:19 +0200 | [diff] [blame] | 2 | |
| 3 | |
| 4 | Basic = Union[List, Dict[str, Any]] |
| 5 | |
| 6 | |
koder aka kdanilov | 39e449e | 2016-12-17 15:15:26 +0200 | [diff] [blame] | 7 | class Loader: ... |
| 8 | class Dumper: ... |
koder aka kdanilov | 22d134e | 2016-11-08 11:33:19 +0200 | [diff] [blame] | 9 | class CLoader: ... |
koder aka kdanilov | 39e449e | 2016-12-17 15:15:26 +0200 | [diff] [blame] | 10 | class CDumper: ... |
koder aka kdanilov | 22d134e | 2016-11-08 11:33:19 +0200 | [diff] [blame] | 11 | |
koder aka kdanilov | 39e449e | 2016-12-17 15:15:26 +0200 | [diff] [blame] | 12 | def load(data: bytes, Loader: Any = None, encoding: str = 'utf8') -> Any: ... |
koder aka kdanilov | 7f59d56 | 2016-12-26 01:34:23 +0200 | [diff] [blame] | 13 | def dump(data: Any, Dumper: Any = None, encoding: str = 'utf8') -> bytes: ... |
| 14 | def safe_load(data: bytes, encoding: str = 'utf8') -> Any: ... |
| 15 | def safe_dump(data: Any, encoding: str = 'utf8') -> bytes: ... |