mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 20:24:30 +08:00
Allow simplejson encoding arguments to be None. (#12466)
Allow None in encoding parameter.
This commit is contained in:
@@ -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 = ...,
|
||||
|
||||
Reference in New Issue
Block a user