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
(py3) user@...$ mypy --ignore-missing-imports --follow-imports skip -m axelrod
Traceback (most recent call last):
File "/home/user/anaconda2/envs/py3/bin/mypy", line 6, in<module>
main(__file__)
File "/home/user/anaconda2/envs/py3/lib/python3.5/site-packages/mypy/main.py", line 42, in main
res = type_check_only(sources, bin_dir, options)
File "/home/user/anaconda2/envs/py3/lib/python3.5/site-packages/mypy/main.py", line 87, in type_check_only
options=options)
File "/home/user/anaconda2/envs/py3/lib/python3.5/site-packages/mypy/build.py", line 183, in build
dispatch(sources, manager)
File "/home/user/anaconda2/envs/py3/lib/python3.5/site-packages/mypy/build.py", line 1526, in dispatch
process_graph(graph, manager)
File "/home/user/anaconda2/envs/py3/lib/python3.5/site-packages/mypy/build.py", line 1652, in process_graph
sccs = sorted_components(graph)
File "/home/user/anaconda2/envs/py3/lib/python3.5/site-packages/mypy/build.py", line 1879, in sorted_components
forreadyin topsort(data):
File "/home/user/anaconda2/envs/py3/lib/python3.5/site-packages/mypy/build.py", line 1988, in topsort
foriteminset.union(*data.values()) - set(data.keys()):
TypeError: descriptor 'union' of 'set' object needs an argument
Running the same command with individual files in the module works fine (no crash, type errors caught and reported as expected).
The text was updated successfully, but these errors were encountered:
Aha, the problem is that because of the --follow-imports=skip it doesn't want to load b so it ends with an entirely empty graph. The fix will have to involve ensuring that it does follow these kinds of "imports". Stay tuned.
Uh oh!
There was an error while loading. Please reload this page.
mypy --ignore-missing-imports --follow-imports skip -m my_module
Running the same command with individual files in the module works fine (no crash, type errors caught and reported as expected).
The text was updated successfully, but these errors were encountered: