Skip to content

Commit

Permalink
python3Packages.mypy: Disable mypy.report import on i686-linux
Browse files Browse the repository at this point in the history
Importing the mypy.report fails due to a circular import.
  • Loading branch information
mweinelt committed Oct 12, 2022
1 parent 7d3e7f4 commit 0310ac4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkgs/development/python-modules/mypy/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,12 @@ buildPythonPackage rec {
"mypy"
"mypy.api"
"mypy.fastparse"
"mypy.report"
"mypy.types"
"mypyc"
"mypyc.analysis"
] ++ lib.optionals (!stdenv.hostPlatform.isi686) [
# ImportError: cannot import name 'map_instance_to_supertype' from partially initialized module 'mypy.maptype' (most likely due to a circular import)
"mypy.report"
];

# Compile mypy with mypyc, which makes mypy about 4 times faster. The compiled
Expand Down

0 comments on commit 0310ac4

Please sign in to comment.