mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-23 12:21:27 +08:00
stdlib: add argument default values (#9501)
This commit is contained in:
@@ -24,15 +24,15 @@ class JSONEncoder:
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
skipkeys: bool = ...,
|
||||
ensure_ascii: bool = ...,
|
||||
check_circular: bool = ...,
|
||||
allow_nan: bool = ...,
|
||||
sort_keys: bool = ...,
|
||||
indent: int | str | None = ...,
|
||||
separators: tuple[str, str] | None = ...,
|
||||
default: Callable[..., Any] | None = ...,
|
||||
skipkeys: bool = False,
|
||||
ensure_ascii: bool = True,
|
||||
check_circular: bool = True,
|
||||
allow_nan: bool = True,
|
||||
sort_keys: bool = False,
|
||||
indent: int | str | None = None,
|
||||
separators: tuple[str, str] | None = None,
|
||||
default: Callable[..., Any] | None = None,
|
||||
) -> None: ...
|
||||
def default(self, o: Any) -> Any: ...
|
||||
def encode(self, o: Any) -> str: ...
|
||||
def iterencode(self, o: Any, _one_shot: bool = ...) -> Iterator[str]: ...
|
||||
def iterencode(self, o: Any, _one_shot: bool = False) -> Iterator[str]: ...
|
||||
|
||||
Reference in New Issue
Block a user