-
-
Notifications
You must be signed in to change notification settings - Fork 526
Tests: Update to Django 6.0; fall back to 5.2 on Python <3.12 #2939
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
Tests: Update to Django 6.0; fall back to 5.2 on Python <3.12 #2939
Conversation
Affects `tests` dependency group only.
It worked! 🤯 🥳 |
| Book.objects.create(id=None) # E: Incompatible type for "id" of "Book" (got "None", expected "float | int | str | Combinable") [misc] | ||
| Book.objects.create(publisher=None) # E: Incompatible type for "publisher" of "Book" (got "None", expected "Publisher | Combinable") [misc] | ||
| Book.objects.create(publisher_id=None) # E: Incompatible type for "publisher_id" of "Book" (got "None", expected "Combinable | int | str") [misc] | ||
| Book.objects.create(publisher_id=None) # E: Incompatible type for "publisher_id" of "Book" (got "None", expected "float | int | str | Combinable") [misc] |
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.
This is a bit surprising -- where does this float come from? But I don't care enough to spend more time on it, seems mostly harmless.
sobolevn
left a comment
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.
Great stuff!
Now we should decide if we are ready to jump into 6.0 support cicle. If we are - merge this right ahead!
We don't necessarily want to advertise official Django 6.0 support yet. Not until we have more of the new APIs covered. But this should be merged regardless -- it's crucial to at least begin work on adding 6.0 APIs. |
|
@UnknownPlatypus Do you want to take a look as well? |
testsdependency group.allowlist_todo_django60.txtfile.