mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-22 20:01:29 +08:00
Add several Python 3.8 annotations (#3347)
This commit is contained in:
@@ -611,7 +611,10 @@ class NamedTuple(Tuple[Any, ...]):
|
||||
@classmethod
|
||||
def _make(cls: Type[_T], iterable: Iterable[Any]) -> _T: ...
|
||||
|
||||
def _asdict(self) -> collections.OrderedDict[str, Any]: ...
|
||||
if sys.version_info >= (3, 8):
|
||||
def _asdict(self) -> Dict[str, Any]: ...
|
||||
else:
|
||||
def _asdict(self) -> collections.OrderedDict[str, Any]: ...
|
||||
def _replace(self: _T, **kwargs: Any) -> _T: ...
|
||||
|
||||
# Internal mypy fallback type for all typed dicts (does not exist at runtime)
|
||||
|
||||
Reference in New Issue
Block a user