Enable --disallow-any-generics for stubs (#3288)

This commit is contained in:
Sebastian Rittau
2019-10-01 14:31:34 +02:00
committed by Jelle Zijlstra
parent 23b353303b
commit c32e1e2280
77 changed files with 386 additions and 329 deletions

View File

@@ -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