mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 20:24:30 +08:00
Add missing parameter types for _json (#3710)
* Add missing parameter types for _json make_encoder * Fix json typings
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user