First time here? Check out the FAQ!

Revision history  [back]

I can't seem to see the editor screenshot (bad url, and in any case AllAnswered seems to have made a mess of your post).  However, this is most likely a difference between the capabilities of static analysis and runtime analysis.  In the editor, Wing uses static analysis and that cannot determine the type of everything. 

One solution is to run to a breakpoint in the context you want to edit and then Wing also uses runtime analysis in the editor. 

Another possibility is to add things like "isinstance(temp, TextIO)" to code or to use Python 3.x type annotations. 

There are some details on the options here:  http://wingware.com/doc/edit/helping-wing-analyze-code

I can't seem to see the editor screenshot (bad url, and in any case AllAnswered seems to have made a mess of your post).  However, this is most likely a difference between the capabilities of static analysis and runtime analysis.  In the editor, Wing uses static analysis and that cannot determine the type of everything. 

One solution is to run to a breakpoint in the context you want to edit and then Wing also uses runtime analysis in the editor. 

Another possibility is to add things like "isinstance(temp, TextIO)" to code or to use Python 3.x type annotations. 

There are some details on the options here:  http://wingware.com/doc/edit/helping-wing-analyze-code