See here: http://www.wingware.com/doc/edit/helping-wing-analyze-code
Your IDE (Wing) does not know for sure what type of objects are in cars , but you can say that car has an assert statement and it will do autocomplete exactly the way you want it to. You can view it as a molding for the wing eyes, only if you want.
class Reader: def __init__(self): """Constructor""" def ReadCarNames(self,cars): for counter,car in enumerate(cars): assert isinstance(car, Car)
or if you do not want this statement to be disabled all the time, you can wrap it in the if logic that the Wing SourceAssistant will pick up, but python will not execute.
if 0: assert isinstance(car, Car)
Currently, you cannot tell Wing that the / tuple / etc list contains only one type of object and what it is, but it is in their plans and will use the same syntax.
source share