This is my project:
In Pages.py After import file , work fine there are red line under file why ?
In .py After import file Locators.py and .py, and like photo Everything work fine but there are red line under file why ?
and this line:
This is my project:
In Pages.py After import file , work fine there are red line under file why ?
In .py After import file Locators.py and .py, and like photo Everything work fine but there are red line under file why ?
and this line:
Try the following:
__init__.py
file in src
folder src
folder as a source rootPYTHONPATH
Point 4
generally fixes the unresolved reference errors
. If that doesn't work then see the answer here. It contains many solutions that you may try.
If nothing has worked, then you can just turn off the red underline by going to
File->Settings->Editor->Inspections
From there simply untick the relevant error.
A side note: It's always best to place your imports right at the top.