mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Add TypedDict total argument (#1443)
See https://github.com/python/mypy/pull/3558 for context.
This commit is contained in:
committed by
Jelle Zijlstra
parent
5a95e19322
commit
9b612c9218
2
third_party/2and3/mypy_extensions.pyi
vendored
2
third_party/2and3/mypy_extensions.pyi
vendored
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user