Add TypedDict total argument (#1443)

See https://github.com/python/mypy/pull/3558 for context.
This commit is contained in:
Jukka Lehtosalo authored and Jelle Zijlstra committed 2017-06-29 08:38:13 -07:00
1 parent 5a95e19322
commit 9b612c9218
1 file changed
+1 -1
+1 -1
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: ...