from typing import Union, List, Dict, Any | |
Basic = Union[List, Dict[str, Any]] | |
class Loader: ... | |
class Dumper: ... | |
class CLoader: ... | |
class CDumper: ... | |
def load(data: bytes, Loader: Any = None, encoding: str = 'utf8') -> Any: ... | |
def dump(data: Any, Dumper: Any = None, encoding: str = 'utf8') -> bytes: ... | |
def safe_load(data: bytes, encoding: str = 'utf8') -> Any: ... | |
def safe_dump(data: Any, encoding: str = 'utf8') -> bytes: ... |