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
In 5.0.3, the value of a GenericRelation field is given the useless type _ST (an unbound type variable), and trying to do anything with it gives errors like error: "_ST" has no attribute "all" [attr-defined].
ForeignObject is generic and requires generic arguments. Without these generic arguments, it was previously interpreted as ForeignObject[Any, Any] but now it’s interpreted as the invalid ForeignObject[Any, _ST].
In 5.0.3, the value of a
GenericRelation
field is given the useless type_ST
(an unbound type variable), and trying to do anything with it gives errors likeerror: "_ST" has no attribute "all" [attr-defined]
.This was introduced with b2b1afa (#2261, cc @rafonseca).
django-stubs/django-stubs/contrib/contenttypes/fields.pyi
Line 69 in d60e31e
ForeignObject
is generic and requires generic arguments. Without these generic arguments, it was previously interpreted asForeignObject[Any, Any]
but now it’s interpreted as the invalidForeignObject[Any, _ST]
.django-stubs/django-stubs/db/models/fields/related.pyi
Lines 29 to 34 in d60e31e
Complete test case
pyproject.toml
my_settings.py
my_app/__init__.py
# empty
my_app/models.py
The text was updated successfully, but these errors were encountered: