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 short and as explained there, mypy (I'm using the django stubs) started to complain when I started to use django-polymorphic. Mypy complained that it couldn't resolve the manager type in classes inheriting from the polymorphic model.
Do I need to do something specific to get this to work well with mypy? I tried to change base_manager_name in the child classes to try to use a non_polymorphic manager but that didn't solve my issue.
I'm raising this ticket in this repo in case this issue comes from here and not from the typeddjango project. I might also have done something wrong. I'd welcome feedback if any.
Thanks in advance!
The text was updated successfully, but these errors were encountered:
Hi, this ticket is echoes typeddjango/django-stubs#1158 which I opened earlier today on the typeddjango repo.
In short and as explained there, mypy (I'm using the django stubs) started to complain when I started to use django-polymorphic. Mypy complained that it couldn't resolve the manager type in classes inheriting from the polymorphic model.
Do I need to do something specific to get this to work well with mypy? I tried to change
base_manager_name
in the child classes to try to use a non_polymorphic manager but that didn't solve my issue.I'm raising this ticket in this repo in case this issue comes from here and not from the typeddjango project. I might also have done something wrong. I'd welcome feedback if any.
Thanks in advance!
The text was updated successfully, but these errors were encountered: