mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-04 00:52:44 +08:00
Remove object as the only ancestor for classes in Python 3 stubs.
This commit is contained in:
committed by
Łukasz Langa
parent
efdf2f1b17
commit
4cd137189a
@@ -50,7 +50,7 @@ def load(fp: IO[str],
|
||||
object_pairs_hook: Optional[Callable[[List[Tuple[Any, Any]]], Any]] = ...,
|
||||
**kwds: Any) -> Any: ...
|
||||
|
||||
class JSONEncoder(object):
|
||||
class JSONEncoder:
|
||||
item_separator = ... # type: str
|
||||
key_separator = ... # type: str
|
||||
|
||||
@@ -69,7 +69,7 @@ class JSONEncoder(object):
|
||||
def encode(self, o: Any) -> str: ...
|
||||
def iterencode(self, o: Any, _one_shot: bool=False) -> Iterator[str]: ...
|
||||
|
||||
class JSONDecoder(object):
|
||||
class JSONDecoder:
|
||||
|
||||
object_hook = None # type: Callable[[Dict[str, Any]], Any]
|
||||
parse_float = ... # Callable[[str], Any]
|
||||
|
||||
Reference in New Issue
Block a user