I have a project structure of:
common (folder)
|- __init__.py
|- model.py
|- monitoring.py
|- class MyLogger
on the model.py file i have this line and the following error:
from common.monitoring import MyLogger
errors:
No name 'monitoring ' in module 'common' pylint (no-name-in-module).
Unable to import 'common.monitoring' pylint(import-error).
import monitoring
hits the same errors.
in practice:
- the code runs smoothly
- F12 (go to definition) works and goes the MyLogger.
I searched across the web and couldn't find how to configure VS code well to eliminate those errors.