You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug Report
When using a namespace package, editable mode installation and pyproject.toml makes mypy report "Can't find package". Without pyproject.toml the same commands work (likely because pyproject.toml triggers a different path in PIP).
Finding the type error (src/mypy_problem_test/foo1331/__init__.py:1: error: Incompatible types in assignment (expression has type "str", variable has type "int"))
Note: without the pyproject.toml file the result is exactly this.
Your Environment
Mypy version used: 1.3.0
Mypy command-line flags: none
Mypy configuration options from mypy.ini (and other config files): none
Python version used: 3.10.6
The text was updated successfully, but these errors were encountered:
Bug Report
When using a namespace package, editable mode installation and
pyproject.toml
makes mypy report "Can't find package". Withoutpyproject.toml
the same commands work (likely becausepyproject.toml
triggers a different path in PIP).To Reproduce
Expected Behavior
Mypy reports
Can't find package 'mypy_problem_test.foo1331'
Actual Behavior
Finding the type error (
src/mypy_problem_test/foo1331/__init__.py:1: error: Incompatible types in assignment (expression has type "str", variable has type "int")
)Note: without the
pyproject.toml
file the result is exactly this.Your Environment
mypy.ini
(and other config files): noneThe text was updated successfully, but these errors were encountered: