mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Make more miscellaneous fields read-only, annotate _json.make_encoder (#7439)
This commit is contained in:
@@ -3,14 +3,22 @@ from typing_extensions import final
|
||||
|
||||
@final
|
||||
class make_encoder:
|
||||
sort_keys: Any
|
||||
skipkeys: Any
|
||||
key_separator: Any
|
||||
indent: Any
|
||||
markers: Any
|
||||
default: Any
|
||||
encoder: Any
|
||||
item_separator: Any
|
||||
@property
|
||||
def sort_keys(self) -> bool: ...
|
||||
@property
|
||||
def skipkeys(self) -> bool: ...
|
||||
@property
|
||||
def key_separator(self) -> str: ...
|
||||
@property
|
||||
def indent(self) -> int | None: ...
|
||||
@property
|
||||
def markers(self) -> dict[int, Any] | None: ...
|
||||
@property
|
||||
def default(self) -> Callable[[Any], Any]: ...
|
||||
@property
|
||||
def encoder(self) -> Callable[[str], str]: ...
|
||||
@property
|
||||
def item_separator(self) -> str: ...
|
||||
def __init__(
|
||||
self,
|
||||
markers: dict[int, Any] | None,
|
||||
|
||||
Reference in New Issue
Block a user