mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-19 23:09:55 +08:00
use '-> Any' instead of '-> object'
This commit is contained in:
@@ -3,19 +3,19 @@
|
||||
# for a more precise manual annotation of this module.
|
||||
# Feel free to edit the source below, but remove this header when you do.
|
||||
|
||||
from typing import List, Tuple, Dict, GenericType
|
||||
from typing import Any, List, Tuple, Dict, GenericType
|
||||
|
||||
class defaultdict(object):
|
||||
def __copy__() -> object: ...
|
||||
def __missing__(*args, **kwargs) -> object:
|
||||
def __copy__() -> Any: ...
|
||||
def __missing__(*args, **kwargs) -> Any:
|
||||
raise KeyError()
|
||||
def __reduce__() -> tuple: ...
|
||||
def copy() -> object: ...
|
||||
def copy() -> Any: ...
|
||||
|
||||
class deque(object):
|
||||
def __copy__() -> object: ...
|
||||
def __copy__() -> Any: ...
|
||||
def __reduce__() -> tuple: ...
|
||||
def __reversed__() -> object: ...
|
||||
def __reversed__() -> Any: ...
|
||||
def __sizeof__() -> long: ...
|
||||
def append(*args, **kwargs) -> None: ...
|
||||
def appendleft(*args, **kwargs) -> None: ...
|
||||
@@ -24,9 +24,9 @@ class deque(object):
|
||||
raise RuntimeError()
|
||||
def extend(*args, **kwargs) -> None: ...
|
||||
def extendleft(*args, **kwargs) -> None: ...
|
||||
def pop() -> object:
|
||||
def pop() -> Any:
|
||||
raise IndexError()
|
||||
def popleft() -> object:
|
||||
def popleft() -> Any:
|
||||
raise IndexError()
|
||||
def remove(*args, **kwargs) -> None:
|
||||
raise IndexError()
|
||||
|
||||
Reference in New Issue
Block a user