Allow indent to be str in JSONEncoder (#9417)

This commit is contained in:
Will Frey
2022-12-27 10:26:16 -05:00
committed by GitHub
parent 2704a8d916
commit f174355b31

View File

@@ -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: ...