import-self / W0406#
Message emitted:
Module import itself
Description:
Used when a module is importing itself.
Problematic code:
from bad import a_function # [import-self]
def a_function():
pass
Correct code:
def a_function():
pass
Created by the imports checker.