koder aka kdanilov | 22d134e | 2016-11-08 11:33:19 +0200 | [diff] [blame] | 1 | from typing import Union, List, Dict, Any, IO |
| 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(stream: IO, loader: Any) -> Any: ... |
| 13 | def load(data: bytes, Loader: Any = None, encoding: str = 'utf8') -> Any: ... |
| 14 | def dump(data: str, Dumper: Any = None, encoding: str = 'utf8') -> bytes: ... |