From ceec43659c61a39d7e06ee104b0b8e71948dd3ed Mon Sep 17 00:00:00 2001 From: Stephen Morton Date: Tue, 26 Nov 2024 19:57:51 -0800 Subject: [PATCH] add `_json.encode_basestring` (#13131) --- stdlib/@tests/stubtest_allowlists/common.txt | 1 - stdlib/_json.pyi | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/@tests/stubtest_allowlists/common.txt b/stdlib/@tests/stubtest_allowlists/common.txt index 1ffeeadd8..20142f655 100644 --- a/stdlib/@tests/stubtest_allowlists/common.txt +++ b/stdlib/@tests/stubtest_allowlists/common.txt @@ -88,7 +88,6 @@ xml.sax.expatreader # ========== # TODO: Module members that exist at runtime, but are missing from stubs # ========== -_json.encode_basestring _thread.RLock _threading_local._localimpl.localargs _threading_local._localimpl.locallock diff --git a/stdlib/_json.pyi b/stdlib/_json.pyi index 069fb6eac..e1c7c52ca 100644 --- a/stdlib/_json.pyi +++ b/stdlib/_json.pyi @@ -45,5 +45,6 @@ class make_scanner: def __init__(self, context: make_scanner) -> None: ... def __call__(self, string: str, index: int) -> tuple[Any, int]: ... +def encode_basestring(s: str, /) -> str: ... def encode_basestring_ascii(s: str, /) -> str: ... def scanstring(string: str, end: int, strict: bool = ...) -> tuple[str, int]: ...