When you place the caret at an unresolved reference, PyCharm shows the red light bulb.
Click the bulb, or press Alt+EnterAlt+EnterAlt+EnterAlt+EnterAlt+EnterAlt+EnterAlt+EnterAlt+Enter, Shift+Alt+J or Ctrl+Shift+MAlt EnterAlt EnterCommand 1 to reveal the list of available quick fixes:
Choose one of the following options:
- Import this name to add an import statement.
- 2.7+Create parameter to add a parameter with some initial
value to the list of function parameters.
- 2.6+Ignore unresolved reference <fully qualified symbol name>. So doing,
the fully qualified name of the symbol in question will be added to the list of ignored references
(File | Settings | Inspections - Python - Unresolved references):
- 2.6+Mark all attributes of <fully qualified type name> as ignored. In this case,
the list of ignored references (File | Settings | Inspections - Python - Unresolved references) will
be modified with the fully qualified name of the type in question with the wildcard (*) at the end: