Skip to content

Commit c611db6

Browse files
committed
Add /src explicitly to MYPY_PATH
Newer versions of Mypy seems to prefer packages in the site-packages directory over those found in the project directory. This causes issues if Mypy is installed in an environment that has an older pip version present, e.g. pre-commit. Adding our pip into MYPY_PATH seems to fix the issue.
1 parent a3c8bb6 commit c611db6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ per-file-ignores =
3535
tests/*: B011
3636

3737
[mypy]
38+
mypy_path = $MYPY_CONFIG_FILE_DIR/src
3839
ignore_missing_imports = True
3940
disallow_untyped_defs = True
4041
disallow_any_generics = True

0 commit comments

Comments
 (0)