Add TypedDict total argument (#1443)

See https://github.com/python/mypy/pull/3558 for context.
This commit is contained in:
Jukka Lehtosalo
2017-06-29 16:38:13 +01:00
committed by Jelle Zijlstra
parent 5a95e19322
commit 9b612c9218

View File

@@ -2,7 +2,7 @@ from typing import Dict, Type, TypeVar, Optional, Union
_T = TypeVar('_T')
def TypedDict(typename: str, fields: Dict[str, Type[_T]]) -> Type[dict]: ...
def TypedDict(typename: str, fields: Dict[str, Type[_T]], total: bool = ...) -> Type[dict]: ...
def Arg(type: _T = ..., name: Optional[str] = ...) -> _T: ...
def DefaultArg(type: _T = ..., name: Optional[str] = ...) -> _T: ...