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
When combining djangorestframework-stubs 1.4 with the newly released django-stubs 1.10.0, Mypy will fail with:
Error constructing plugin instance of NewSemanalDRFPlugin
Traceback (most recent call last):
File "/home/henribru/.cache/pypoetry/virtualenvs/lightkeeper-nCOOTSLY-py3.10/bin/mypy", line 8, in <module>
sys.exit(console_entry())
File "/home/henribru/.cache/pypoetry/virtualenvs/lightkeeper-nCOOTSLY-py3.10/lib/python3.10/site-packages/mypy/__main__.py", line 12, in console_entry
main(None, sys.stdout, sys.stderr)
File "mypy/main.py", line 96, in main
File "mypy/main.py", line 173, in run_build
File "mypy/build.py", line 180, in build
File "mypy/build.py", line 231, in _build
File "mypy/build.py", line 478, in load_plugins
File "mypy/build.py", line 456, in load_plugins_from_config
File "/home/henribru/.cache/pypoetry/virtualenvs/lightkeeper-nCOOTSLY-py3.10/lib/python3.10/site-packages/mypy_drf_plugin/main.py", line 25, in __init__
django_settings_module = mypy_django_main.extract_django_settings_module(options.config_file)
AttributeError: module 'mypy_django_plugin.main' has no attribute 'extract_django_settings_module'
The conflict is caused by:
djangorestframework-stubs[compatible-mypy] 3.15.1 depends on mypy~=1.11.0; extra == "compatible-mypy"
pre-commit-placeholder-package 0.0.0 depends on mypy==1.13.0
Bug report
What's wrong
When combining djangorestframework-stubs 1.4 with the newly released django-stubs 1.10.0, Mypy will fail with:
This is happening because
extract_django_settings_module
was removed in typeddjango/django-stubs@edec5a1How is that should be
Ideally it should work with the newest django-stubs
System information
python
version: 3.10django
version: 3.2.12mypy
version: 0.941django-stubs
version: 1.10.0The text was updated successfully, but these errors were encountered: