Files
openide/python/testData/resolve/TypingListInheritor.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

5 lines
76 B
Python

from typing import List
class A(List[int]):
pass
A().append()
# <ref>