Files
openide/python/testData/stubs/ImportedTypingNamedTupleKwargsFields.py
Semyon Proshev 49d3aade75 Enable pyi-stubs for collections module (PY-23259, PY-21415, PY-17865, PY-17206)
Infer `tuple` class type when `collections.namedtuple` could not be analyzed.
Infer `namedtuple` class type when `typing.NamedTuple` could not be analyzed.
Create callable type for `typing.Callable`.
Update ignoring `__getitem__` for ancestors, docstrings and annotations.
Infer superclass collection type correctly.
2018-01-19 18:34:31 +03:00

4 lines
85 B
Python

from typing import NamedTuple
from b import fields
nt = NamedTuple("name", **fields)