Skip to content

Commit 24deecc

Browse files
committed
Add TypedDict total argument
See python/mypy#3558 for context.
1 parent 5a95e19 commit 24deecc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

third_party/2and3/mypy_extensions.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ from typing import Dict, Type, TypeVar, Optional, Union
22

33
_T = TypeVar('_T')
44

5-
def TypedDict(typename: str, fields: Dict[str, Type[_T]]) -> Type[dict]: ...
5+
def TypedDict(typename: str, fields: Dict[str, Type[_T]], total: bool = ...) -> Type[dict]: ...
66

77
def Arg(type: _T = ..., name: Optional[str] = ...) -> _T: ...
88
def DefaultArg(type: _T = ..., name: Optional[str] = ...) -> _T: ...

0 commit comments

Comments
 (0)