mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-06-23 17:28:38 +08:00
[stubsabot] Remove ujson as ships py.typed file (#15437)
This commit is contained in:
committed by
GitHub
parent
7a610ebc92
commit
8e768a2745
@@ -1,3 +0,0 @@
|
||||
version = "5.10.*"
|
||||
upstream_repository = "https://github.com/ultrajson/ultrajson"
|
||||
obsolete_since = "5.11.0" # Released on 2025-08-20
|
||||
@@ -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): ...
|
||||
Reference in New Issue
Block a user