import-self / W0406#
Module import itself
Used when a module is importing itself.
Say you have a file called
import-self would be raised on the following code:
from my_file import a_function # [import-self] def a_function(): pass
The solution would be to remove the import:
def a_function(): pass
Created by the imports checker.