-
-
Notifications
You must be signed in to change notification settings - Fork 451
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
TypedDictType crash with mypy 1.12.0 #2405
Labels
bug
Something isn't working
Comments
Crash Report Getting same error, admittedly, the code that crashes was wrong. As the Player model do not got a zone field. When i removed the code, mypy works.
Traceback
To Reproduce Code that fails return [p["id"] for p in Player.objects.filter(zone__x=x, zone__y=y).values("id")] Relevant model class Player(Model):
# ... do not have any zone Field Your Environment
|
Hello friends any news on when this fix will be released on pypi ? TIA |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
Mypy 1.12.0 crashes on calls to Django's
.annotate()
. It looks like the cause is the addition of thereadonly_keys
arg toTypedDictType
in this PR.What's wrong
Repro:
Error:
How is that should be
No crash
System information
python
version: 3.12django
version: 5.1.2mypy
version: 1.12.0django-stubs
version: 5.1.0django-stubs-ext
version: 5.1.0The text was updated successfully, but these errors were encountered: