blob: 4e03d09cf6dcd1605db1baee94fc2b765076b575 [file] [log] [blame]
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: ...