Dynamic settings fail as of 1.13.0 #1276
Labels
bug
Something isn't working
mypy-plugin
Issues specific to mypy_django_plugin
regression
Behavior has changed for worse with a release
Bug report
What's wrong
We build Django settings dynamically, instead of using a
settings.py
file with static properties. This worked fine with django-stubs up until 1.13.0, but all of our settings fail with 1.13.0:This seems to be caused by #1163.
How is that should be
I understand the reasoning given in #1163, but we are pinned at django-stubs 1.12.0 and would have to completely reimplement our installation in order to unblock. Can dynamically-constructed settings be supported with django-stubs, or is that door permanently closed? Maybe it could be a non-default option we could enable, accepting the potential downsides?
System information
python
version: 3.10.8django
version: 4.1.3mypy
version: 0.991django-stubs
version: 1.13.0django-stubs-ext
version: 0.7.0The text was updated successfully, but these errors were encountered: