mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-19 18:31:14 +08:00
Enable --disallow-any-generics for stubs (#3288)
This commit is contained in:
committed by
Jelle Zijlstra
parent
23b353303b
commit
c32e1e2280
@@ -103,7 +103,7 @@ class UnboundMethodType:
|
||||
__name__: str
|
||||
__func__ = im_func
|
||||
__self__ = im_self
|
||||
def __init__(self, func: Callable, obj: object) -> None: ...
|
||||
def __init__(self, func: Callable[..., Any], obj: object) -> None: ...
|
||||
def __call__(self, *args: Any, **kwargs: Any) -> Any: ...
|
||||
|
||||
class InstanceType(object): ...
|
||||
@@ -154,7 +154,7 @@ class EllipsisType: ...
|
||||
class DictProxyType:
|
||||
# TODO is it possible to have non-string keys?
|
||||
# no __init__
|
||||
def copy(self) -> dict: ...
|
||||
def copy(self) -> Dict[Any, Any]: ...
|
||||
def get(self, key: str, default: _T = ...) -> Union[Any, _T]: ...
|
||||
def has_key(self, key: str) -> bool: ...
|
||||
def items(self) -> List[Tuple[str, Any]]: ...
|
||||
|
||||
Reference in New Issue
Block a user