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
Due to that recent change in mypy source code, the following error is reported when using django-stubs
mypy run-test: commands[0] | mypy swh
Traceback (most recent call last):
File "/home/antoine/swh/swh-environment/swh-web/.tox/mypy/bin/mypy", line 8, in <module>
sys.exit(console_entry())
File "/home/antoine/swh/swh-environment/swh-web/.tox/mypy/lib/python3.7/site-packages/mypy/__main__.py", line 8, in console_entry
main(None, sys.stdout, sys.stderr)
File "mypy/main.py", line 89, in main
File "mypy/build.py", line 166, in build
File "mypy/build.py", line 235, in _build
File "mypy/build.py", line 2567, in dispatch
File "mypy/build.py", line 2725, in load_graph
File "mypy/build.py", line 1826, in __init__
File "mypy/build.py", line 2101, in compute_dependencies
File "mypy/plugin.py", line 785, in get_additional_deps
File "mypy/plugin.py", line 711, in get_additional_deps
File "/home/antoine/swh/swh-environment/swh-web/.tox/mypy/lib/python3.7/site-packages/mypy_django_plugin/main.py", line 124, in get_additional_deps
if file.fullname() == 'django.conf' and self.django_context.django_settings_module:
TypeError: 'str' object is not callable
ERROR: InvocationError for command /home/antoine/swh/swh-environment/swh-web/.tox/mypy/bin/mypy swh (exited with code 1)
The text was updated successfully, but these errors were encountered:
…ypeddjango#236)
Closestypeddjango#144
This seems straightforward, but I'm not writing a lot of .pyi files. I have tested it briefly and it seems to work.
Due to that recent change in
mypy
source code, the following error is reported when usingdjango-stubs
The text was updated successfully, but these errors were encountered: