Allow simplejson encoding arguments to be None. (#12466)

Allow None in encoding parameter.
This commit is contained in:
Peter Bierma
2024-07-31 22:10:10 -04:00
committed by GitHub
parent 4ef2d66663
commit df29ce93ac

View File

@@ -22,7 +22,7 @@ def dumps(
cls: type[JSONEncoder],
indent: str | int | None = ...,
separators: tuple[str, str] | None = ...,
encoding: str = ...,
encoding: str | None = ...,
default: Callable[[Any], Any] | None = ...,
use_decimal: bool = ...,
namedtuple_as_object: bool = ...,
@@ -46,7 +46,7 @@ def dumps(
cls: type[JSONEncoder] | None = ...,
indent: str | int | None = ...,
separators: tuple[str, str] | None = ...,
encoding: str = ...,
encoding: str | None = ...,
default: Callable[[Any], Any] | None = ...,
use_decimal: bool = ...,
namedtuple_as_object: bool = ...,
@@ -71,7 +71,7 @@ def dump(
cls: type[JSONEncoder],
indent: str | int | None = ...,
separators: tuple[str, str] | None = ...,
encoding: str = ...,
encoding: str | None = ...,
default: Callable[[Any], Any] | None = ...,
use_decimal: bool = ...,
namedtuple_as_object: bool = ...,
@@ -96,7 +96,7 @@ def dump(
cls: type[JSONEncoder] | None = ...,
indent: str | int | None = ...,
separators: tuple[str, str] | None = ...,
encoding: str = ...,
encoding: str | None = ...,
default: Callable[[Any], Any] | None = ...,
use_decimal: bool = ...,
namedtuple_as_object: bool = ...,