You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug Report
Upon upgrading from 1.11.2 to 1.12.0, we noticed our mypy runs breaking with an INTERNAL ERROR. The error ostensibly is on a line that starts a Django model query, similar to MyModel.objects.values("column_name").annotate(sum=Sum("other_column")).order_by("sort_column")
(A clear and concise description of what the bug is.)
To Reproduce
It's unclear why this is happening to the specific Django model/query and not others, therefore difficult to reproduce. This error does not arise on other Django queries structured similarly (though I don't know if it's just this line that's crashing mypy and it can't reach ones later on)
Expected Behavior
Mypy should have had no issues with the line in question, as had been the case on earlier versions.
Actual Behavior
The following error shows up in our github CI checks. It appears to be some problem with the Django plugin.
Your Environment
Mypy version used: 1.12.0
Mypy command-line flags: specific file names
Mypy configuration options from mypy.ini (and other config files): plugins = mypy_django_plugin.main, mypy_drf_plugin.main
Python version used: 3.10
The text was updated successfully, but these errors were encountered:
Bug Report
Upon upgrading from 1.11.2 to 1.12.0, we noticed our mypy runs breaking with an
INTERNAL ERROR
. The error ostensibly is on a line that starts a Django model query, similar toMyModel.objects.values("column_name").annotate(sum=Sum("other_column")).order_by("sort_column")
(A clear and concise description of what the bug is.)
To Reproduce
It's unclear why this is happening to the specific Django model/query and not others, therefore difficult to reproduce. This error does not arise on other Django queries structured similarly (though I don't know if it's just this line that's crashing mypy and it can't reach ones later on)
Expected Behavior
Mypy should have had no issues with the line in question, as had been the case on earlier versions.
Actual Behavior
The following error shows up in our github CI checks. It appears to be some problem with the Django plugin.
Your Environment
mypy.ini
(and other config files):plugins = mypy_django_plugin.main, mypy_drf_plugin.main
The text was updated successfully, but these errors were encountered: