There are a few ways to help Wing provide complete and correct information
in its auto-completer, goto-definition, Source Assistant, Source Browser,
Find Uses, Refactoring,
and other code intelligence features:
- Always check first whether you have properly set your PYTHONPATH and other
Project Properties, as this can
fix most failed analysis problems. You can see the effective PYTHONPATH
with Show Python Environment in the
Source menu.
- In code that is difficult to statically analyze, set a breakpoint and run
the debugger to that point. Wing will use the live runtime state of the
debug process to supplement type information it finds with static analysis.
- You can also use PEP484 syntax (in Python 3.5+) or isinstance to
provide type hints, or write (or generate) interface definition files that
provide type information to Wing. For details see Helping Wing Analyze
Code.