mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 13:34:58 +08:00
Enable --disallow-any-generics for stubs (#3288)
This commit is contained in:
committed by
Jelle Zijlstra
parent
23b353303b
commit
c32e1e2280
@@ -1,7 +1,9 @@
|
||||
# Stubs for mock
|
||||
|
||||
import sys
|
||||
from typing import Any, Optional, Text, Type
|
||||
from typing import Any, List, Optional, Text, Tuple, Type, TypeVar
|
||||
|
||||
_T = TypeVar("_T")
|
||||
|
||||
FILTER_DIR: Any
|
||||
|
||||
@@ -18,7 +20,7 @@ class _Sentinel:
|
||||
sentinel: Any
|
||||
DEFAULT: Any
|
||||
|
||||
class _CallList(list):
|
||||
class _CallList(List[_T]):
|
||||
def __contains__(self, value: Any) -> bool: ...
|
||||
|
||||
class _MockIter:
|
||||
@@ -111,7 +113,7 @@ class _ANY:
|
||||
|
||||
ANY: Any
|
||||
|
||||
class _Call(tuple):
|
||||
class _Call(Tuple[Any, ...]):
|
||||
def __new__(cls, value: Any = ..., name: Optional[Any] = ..., parent: Optional[Any] = ..., two: bool = ..., from_kall: bool = ...) -> Any: ...
|
||||
name: Any
|
||||
parent: Any
|
||||
|
||||
Reference in New Issue
Block a user