This warning occurs in conjunction with issue F403,
'from module import *' used. It means that the variable
name could be undefined, but flake8 cannot be sure because it also could also be imported in the star imports.
Confirm that the variable is defined in the star imports. If it is, explicitly import it instead of importing
*. If not, then define the variable.
from mymodule import * def print_name(): print(name) # name could be defined in mymodule
Either explicitly import
from mymodule import name def print_name(): print(name)
from mymodule import * def print_name(name): print(name)