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 isinstance to provide type hints, as described in
Helping Wing Analyze Code.