15👍
It appears that your problem is similar to this issue raised in mypy
‘s github repo:
Module X has no attribute Y, since version 0.700 (works fine with 0.670)
wherein the author of the issue originally ran mypy
with the following line
RUN mypy --strict ./mypackage/tests.py
and solved the problem by running mypy
by adding on the --implicit-reexport
flag as follows:
RUN mypy --strict --implicit-reexport ./mypackage/tests.py
Source:stackexchange.com