File: toml.pyi

package info (click to toggle)
python-toml 0.10.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 216 kB
  • sloc: python: 1,482; makefile: 7; sh: 6
file content (25 lines) | stat: -rw-r--r-- 727 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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: ...

class TomlDecoder(object):...

class TomlEncoder(object):...

class TomlPreserveCommentDecoder(TomlDecoder):...

class TomlPreserveCommentEncoder(TomlEncoder):...

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: ...