add types
This commit is contained in:
17
toml.pyi
Normal file
17
toml.pyi
Normal file
@@ -0,0 +1,17 @@
|
||||
from typing import Any, IO, Mapping, MutableMapping, Optional, Type, Union
|
||||
import datetime
|
||||
|
||||
|
||||
class TomlDecodeError(Exception): ...
|
||||
|
||||
class TomlTz(datetime.tzinfo):
|
||||
def __init__(self, toml_offset: str) -> None: ...
|
||||
|
||||
def load(f: Union[str, list, IO[str]],
|
||||
_dict: Type[MutableMapping[str, Any]] = ...) \
|
||||
-> MutableMapping[str, Any]: ...
|
||||
def loads(s: str, _dict: Type[MutableMapping[str, Any]] = ...) \
|
||||
-> MutableMapping[str, Any]: ...
|
||||
|
||||
def dump(o: Mapping[str, Any], f: IO[str]) -> str: ...
|
||||
def dumps(o: Mapping[str, Any]) -> str: ...
|
||||
Reference in New Issue
Block a user