Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 'Import cycle from Django settings module' errors function context #2142

Merged
merged 1 commit into from
May 9, 2024

Conversation

intgr
Copy link
Collaborator

@intgr intgr commented May 9, 2024

Remaining unresolvable cases will have a different error message 'Cannot determine type of "SETTING_NAME" [has-type]'

Special thanks to Anthony Sottile @asottile-sentry for suggesting this solution in #2127 (comment)

Related issues

Remaining unresolvable cases will have error message 'Cannot determine type of "SETTING_NAME"  [has-type]'

Special thanks to Anthony Sottile for suggesting this solution.

Co-authored-by: Anthony Sottile <asottile@umich.edu>
@intgr intgr requested a review from flaeppe May 9, 2024 15:22
@intgr intgr added the mypy-plugin Issues specific to mypy_django_plugin label May 9, 2024
@intgr intgr changed the title Fix 'Import cycle from Django settings module' errors in most cases Fix 'Import cycle from Django settings module' errors function context May 9, 2024
@intgr intgr merged commit 0996056 into typeddjango:master May 9, 2024
36 checks passed
@intgr intgr deleted the fix-most-import-cycles branch May 9, 2024 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mypy-plugin Issues specific to mypy_django_plugin
Development

Successfully merging this pull request may close these issues.

2 participants