Ask Your Question

Revision history [back]

Wing tries to infer types on its own so if a function contains 'return ""' it should know that variables assigned the return value of that function are strings (possibly among other types).You can also use various different methods for type hinting, including PEP 484 and PEP 526 type hinting or adding isinstance() assertions.  The details are described in https://wingware.com/doc/edit/helping-wing-analyze-code

click to hide/show revision 2
No.2 Revision

Wing tries to infer types on its own so if a function contains 'return ""' it should know that variables assigned the return value of that function are strings (possibly among other types).You types).

You can also use various different methods for type hinting, including PEP 484 and PEP 526 type hinting or adding isinstance() assertions.  The details are described in https://wingware.com/doc/edit/helping-wing-analyze-code