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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve core.files.storages types for Django 4.2 #1488
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! A few more tweaks :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's merge this and fix the remaining things in a follow-up pull request.
Ok, so it wasn鈥檛 actually so difficult to do that properly, and as this PR鈥痠s not merged yet, I鈥痶hink we should do it properly right away. The only part I鈥痺asn鈥檛 sure about was the typing of |
Oops, sorry, I was waiting for CI and forgot to merge afterwards. |
No worries. The CI鈥痵eems to be green again after your commit, thanks. |
Hello 馃憢 ,
this PR鈥痠s adding types for the new storages concepts added in 4.2:
https://docs.djangoproject.com/en/4.2/ref/files/storage/#django.core.files.storage.storages
&
https://docs.djangoproject.com/en/4.2/ref/files/storage/#the-inmemorystorage-class
I didn鈥檛 find any tests for the existing storages concepts so didn鈥檛 add any. Let me know if you鈥檇 like for me to add some.