From df29ce93ac284c6fcba5601339c814677f3aa1eb Mon Sep 17 00:00:00 2001 From: Peter Bierma Date: Wed, 31 Jul 2024 22:10:10 -0400 Subject: [PATCH] Allow `simplejson` encoding arguments to be `None`. (#12466) Allow None in encoding parameter. --- stubs/simplejson/simplejson/__init__.pyi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stubs/simplejson/simplejson/__init__.pyi b/stubs/simplejson/simplejson/__init__.pyi index dcba31704..4b61e31e3 100644 --- a/stubs/simplejson/simplejson/__init__.pyi +++ b/stubs/simplejson/simplejson/__init__.pyi @@ -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 = ...,