Files
openide/python/testData/inspections/PyCallingNonCallableInspection/qualifiedNamedTuple.py
Andrey Vlasovskikh 8603259282 Fixed callable inspection for 'namedtuple' instances (PY-8801)
Don't cast reference type returned by a type provider to an instance
type. It should know better what type to return.
2013-02-12 21:27:01 +04:00

5 lines
84 B
Python

import collections
Point = collections.namedtuple('Point', 'x y')
p1 = Point(1, 2)