- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 515
 
Closed
Labels
bugSomething isn't workingSomething isn't workingmypy-pluginIssues specific to mypy_django_pluginIssues specific to mypy_django_pluginregressionBehavior has changed for worse with a releaseBehavior has changed for worse with a release
Description
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:
'Settings' object has no attribute 'FOO'
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
- OS:
 pythonversion: 3.10.8djangoversion: 4.1.3mypyversion: 0.991django-stubsversion: 1.13.0django-stubs-extversion: 0.7.0
virtualxdriver, intgr, nkiryanov, jacebrowning, jacekbj and 5 more
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingmypy-pluginIssues specific to mypy_django_pluginIssues specific to mypy_django_pluginregressionBehavior has changed for worse with a releaseBehavior has changed for worse with a release