Mypy error: "Source file found twice under different module names: "registry" and "src.homework.homework_1.registry"

84 views Asked by At

Mypy throws an error when I import the module. The project structure looks like this:

enter image description here

Im importing registry.py to actions.py with: from src.homework.homework_1.registry import *

On github has this problem in CI

enter image description here

I tried using relative import from ..homework_1.registry import *, but another problem appears(can't run project with pycharm and python3 -m "file"):

enter image description here

0

There are 0 answers