From 61f74c63bb9f2bb575dbb060a07f97aeb44ae9e0 Mon Sep 17 00:00:00 2001 From: stubsabot <> Date: Fri, 20 Feb 2026 00:19:35 +0000 Subject: [PATCH] [stubsabot] Remove ujson as ships py.typed file Typeshed release: https://pypi.org/pypi/types-ujson Typeshed stubs: https://github.com/python/typeshed/tree/main/stubs/ujson --- stubs/ujson/METADATA.toml | 3 --- stubs/ujson/ujson.pyi | 52 --------------------------------------- 2 files changed, 55 deletions(-) delete mode 100644 stubs/ujson/METADATA.toml delete mode 100644 stubs/ujson/ujson.pyi diff --git a/stubs/ujson/METADATA.toml b/stubs/ujson/METADATA.toml deleted file mode 100644 index 6f9cb91f0c74..000000000000 --- a/stubs/ujson/METADATA.toml +++ /dev/null @@ -1,3 +0,0 @@ -version = "5.10.*" -upstream_repository = "https://github.com/ultrajson/ultrajson" -obsolete_since = "5.11.0" # Released on 2025-08-20 diff --git a/stubs/ujson/ujson.pyi b/stubs/ujson/ujson.pyi deleted file mode 100644 index 1fb7f2fe8af7..000000000000 --- a/stubs/ujson/ujson.pyi +++ /dev/null @@ -1,52 +0,0 @@ -from _typeshed import SupportsRead, SupportsWrite -from collections.abc import Callable -from typing import Any, Final - -__version__: Final[str] - -def encode( - obj: Any, - ensure_ascii: bool = ..., - double_precision: int = ..., - encode_html_chars: bool = ..., - escape_forward_slashes: bool = ..., - sort_keys: bool = ..., - indent: int = ..., - allow_nan: bool = ..., - reject_bytes: bool = ..., - default: Callable[[Any], Any] | None = None, # Specify how to serialize arbitrary types - separators: tuple[str, str] | None = None, -) -> str: ... -def dumps( - obj: Any, - ensure_ascii: bool = ..., - double_precision: int = ..., - encode_html_chars: bool = ..., - escape_forward_slashes: bool = ..., - sort_keys: bool = ..., - indent: int = ..., - allow_nan: bool = ..., - reject_bytes: bool = ..., - default: Callable[[Any], Any] | None = None, # Specify how to serialize arbitrary types - separators: tuple[str, str] | None = None, -) -> str: ... -def dump( - obj: Any, - fp: SupportsWrite[str], - *, - ensure_ascii: bool = ..., - double_precision: int = ..., - encode_html_chars: bool = ..., - escape_forward_slashes: bool = ..., - sort_keys: bool = ..., - indent: int = ..., - allow_nan: bool = ..., - reject_bytes: bool = ..., - default: Callable[[Any], Any] | None = None, # Specify how to serialize arbitrary types - separators: tuple[str, str] | None = None, -) -> None: ... -def decode(s: str | bytes | bytearray, precise_float: bool = ...) -> Any: ... -def loads(s: str | bytes | bytearray, precise_float: bool = ...) -> Any: ... -def load(fp: SupportsRead[str | bytes | bytearray], precise_float: bool = ...) -> Any: ... - -class JSONDecodeError(ValueError): ...