I'm trying to help mypy to find correct paths for modules but I don't understand hwo to do it from docs https://mypy.readthedocs.io/en/latest/running_mypy.html#missing-imports
I added stubs by stubgen *.py
but still the same. I read that I also have to create py.typed
file but i don't know how to generate it? Is there a way to make it more simple?
File structure:
├── mod
│ └── y.py
└── x.py
Error:
x.py:1: error: Cannot find implementation or library stub for module named 'mod.y'