File: _json.pyi

package info (click to toggle)
mypy 0.470-complete-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 5,864 kB
  • ctags: 3,264
  • sloc: python: 21,838; makefile: 18
file content (30 lines) | stat: -rw-r--r-- 1,130 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
26
27
28
29
30
"""Stub file for the '_json' module."""

from typing import Any, Tuple

class make_encoder:
    sort_keys = ...  # type: Any
    skipkeys = ...  # type: Any
    key_separator = ...  # type: Any
    indent = ...  # type: Any
    markers = ...  # type: Any
    default = ...  # type: Any
    encoder = ...  # type: Any
    item_separator = ...  # type: Any
    def __init__(self, markers, default, encoder, indent, key_separator,
                 item_separator, sort_keys, skipkeys, allow_nan) -> None: ...
    def __call__(self, *args, **kwargs) -> Any: ...

class make_scanner:
    object_hook = ...  # type: Any
    object_pairs_hook = ...  # type: Any
    parse_int = ...  # type: Any
    parse_constant = ...  # type: Any
    parse_float = ...  # type: Any
    strict = ...  # type: bool
    # TODO: 'context' needs the attrs above (ducktype), but not __call__.
    def __init__(self, context: "make_scanner") -> None: ...
    def __call__(self, string: str, index: int) -> Tuple[Any, int]: ...

def encode_basestring_ascii(s: str) -> str: ...
def scanstring(string: str, end: int, strict: bool = ...) -> Tuple[str, int]: ...