From a1dc346ef6b2914197786c8a6be76202e929477a Mon Sep 17 00:00:00 2001 From: Semyon Moroz Date: Wed, 23 Jul 2025 11:04:13 +0000 Subject: [PATCH] [json] Add default value for `strict` param to `scanstring` (#14441) --- stdlib/_json.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/_json.pyi b/stdlib/_json.pyi index cc59146ed..4a77e5be5 100644 --- a/stdlib/_json.pyi +++ b/stdlib/_json.pyi @@ -48,4 +48,4 @@ class make_scanner: def encode_basestring(s: str, /) -> str: ... def encode_basestring_ascii(s: str, /) -> str: ... -def scanstring(string: str, end: int, strict: bool = ...) -> tuple[str, int]: ... +def scanstring(string: str, end: int, strict: bool = True) -> tuple[str, int]: ...