Repository navigation
Expose Django settings and storage alias constants - #410
Merged
kodiakhq[bot] merged 1 commit intoSep 23, 2026
Merged
Conversation
sbdchd
approved these changes
Sep 23, 2026
Owner
|
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses #401's missing
django.confconstants.Add
DEFAULT_STORAGE_ALIASandSTATICFILES_STORAGE_ALIASand describe their values, together withENVIRONMENT_VARIABLE, as literal strings. This lets type checkers resolve the same constants that Django exposes at runtime without broadening the change to unrelated settings APIs.The Pyright regression imports all three constants and checks their exact types. It fails against the original stubs with unknown-import and type assertion errors, then passes with the declarations. The values were also checked against Django 5.2.14 at runtime.
Validation: locked development dependencies on Python 3.13; full mypy and Pyright checks, Ruff lint and formatting, pytest, and ty checks. Ruff was invoked with the tracked file list while preserving the configured exclusions because directory discovery stalled locally.
AI disclosure: this patch, regression test, and description were prepared with OpenAI Codex; the validation commands were executed locally.