mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Allow indent to be str in JSONEncoder (#9417)
This commit is contained in:
@@ -20,7 +20,7 @@ class JSONEncoder:
|
||||
check_circular: bool
|
||||
allow_nan: bool
|
||||
sort_keys: bool
|
||||
indent: int
|
||||
indent: int | str
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
@@ -29,7 +29,7 @@ class JSONEncoder:
|
||||
check_circular: bool = ...,
|
||||
allow_nan: bool = ...,
|
||||
sort_keys: bool = ...,
|
||||
indent: int | None = ...,
|
||||
indent: int | str | None = ...,
|
||||
separators: tuple[str, str] | None = ...,
|
||||
default: Callable[..., Any] | None = ...,
|
||||
) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user