I have the following folder structure:
project/
├── main.py
├── package/
├── __init__.py
└── module.py
└── test.py
In module.py, I have a function func1.
In test.py, I have the following code:
from module import func1
PyCharm shows me red lines under "module" and under "func1", claiming "Unresolved reference module" and "Unresolved reference func1". However, when I run the code with Python3, it runs fine.
How can I avoid these red lines?