Misc fixes found by running mypy against Dropbox internal codebase "C". (#1575)

This commit is contained in:
Guido van Rossum
2017-08-25 20:34:13 -07:00
committed by Jelle Zijlstra
parent 1050b383a3
commit 76685480e0
4 changed files with 15 additions and 3 deletions

View File

@@ -50,7 +50,7 @@ class object:
def __sizeof__(self) -> int: ...
def __reduce__(self) -> tuple: ...
def __reduce_ex__(self, protocol: int) -> tuple: ...
def __dir__(self) -> List[str]: ...
def __dir__(self) -> Iterable[str]: ...
if sys.version_info >= (3, 6):
def __init_subclass__(cls) -> None: ...

View File

@@ -11,7 +11,7 @@ from types import ModuleType, TracebackType
_T = TypeVar('_T')
_FT = TypeVar('_FT', bound=Callable[[Any], Any])
_FT = TypeVar('_FT', bound=Callable[..., Any])
_E = TypeVar('_E', bound=Exception)