Add missing parameter types for _json (#3710)

* Add missing parameter types for _json make_encoder

* Fix json typings
This commit is contained in:
Rune Tynan
2020-02-22 00:37:24 -05:00
committed by GitHub
parent ed2d3543c7
commit 9425e359fc

View File

@@ -1,6 +1,6 @@
"""Stub file for the '_json' module."""
from typing import Any, Tuple
from typing import Any, Tuple, Optional, Dict, Callable
class make_encoder:
sort_keys: Any
@@ -11,9 +11,10 @@ class make_encoder:
default: Any
encoder: Any
item_separator: Any
def __init__(self, markers, default, encoder, indent, key_separator,
item_separator, sort_keys, skipkeys, allow_nan) -> None: ...
def __call__(self, *args, **kwargs) -> Any: ...
def __init__(self, markers: Optional[Dict[int, Any]], default: Callable[[Any], Any], encoder: Callable[[str], str],
indent: Optional[int], key_separator: str, item_separator: str, sort_keys: bool, skipkeys: bool,
allow_nan: bool) -> None: ...
def __call__(self, obj: object, _current_indent_level: int) -> Any: ...
class make_scanner:
object_hook: Any