From 77703ae5918ed4ce3665be8ac01216f132d91807 Mon Sep 17 00:00:00 2001 From: Aniruddha Maru Date: Thu, 1 Oct 2026 11:34:25 -0700 Subject: [PATCH] [simplejson] Make JSONEncoder.default return Any, matching json.JSONEncoder Co-Authored-By: Claude Opus 5.5 --- stubs/simplejson/simplejson/encoder.pyi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/stubs/simplejson/simplejson/encoder.pyi b/stubs/simplejson/simplejson/encoder.pyi index 9f82016fe917..726a9d0972c8 100644 --- a/stubs/simplejson/simplejson/encoder.pyi +++ b/stubs/simplejson/simplejson/encoder.pyi @@ -2,7 +2,6 @@ import re from _typeshed import SupportsRichComparison from collections.abc import Callable, Iterator from typing import Any -from typing_extensions import Never ESCAPE: re.Pattern[str] ESCAPE_ASCII: re.Pattern[str] @@ -52,7 +51,7 @@ class JSONEncoder: iterable_as_array: bool = False, ) -> None: ... def encode(self, o: Any) -> str: ... - def default(self, o: Any) -> Never: ... + def default(self, o: Any) -> Any: ... def iterencode(self, o: Any) -> Iterator[str]: ... class JSONEncoderForHTML(JSONEncoder): ...