Files
openide/python/testData/stubs/NamedTupleNameChain.py
Semyon Proshev 8fc1ce6913 PyNamedTupleStub:
creating: check that namedtuple(...) is called, locally resolve tuple name and fields
IO: deserialize and serialize: callee name, tuple name, fields number and fields names
using: update PyStdlibTypeProvider to use stubs for namedtuples
2016-03-23 20:58:57 +03:00

5 lines
97 B
Python

from collections import namedtuple
name0 = "name"
name = name0
nt = namedtuple(name, ["x", "y"])