mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-15 18:42:41 +08:00
Add _field_defaults field to typing.NamedTuple (#2362)
This commit is contained in:
1 parent
5a1ea5efb2
commit
dddca3b167
1 file changed
+1
@@ -542,6 +542,7 @@ def cast(tp: Type[_T], obj: Any) -> _T: ...
|
||||
# NamedTuple is special-cased in the type checker
|
||||
class NamedTuple(tuple):
|
||||
_field_types = ... # type: collections.OrderedDict[str, Type[Any]]
|
||||
_field_defaults: Dict[str, Any] = ...
|
||||
_fields = ... # type: Tuple[str, ...]
|
||||
_source = ... # type: str
|
||||
|
||||
|
||||
Reference in new issue
Block a user