-
-
Notifications
You must be signed in to change notification settings - Fork 517
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Bug report
What's wrong
as_manager() on querysets currently uses Any instead of _T.
Like so:
# django-stubs/db/models/query.pyi
@classmethod
def as_manager(cls) -> Manager[Any]: ...How is that should be
Looks like a simple switch to _T fixes it:
# django-stubs/db/models/query.pyi
@classmethod
def as_manager(cls) -> Manager[_T]: ...See https://docs.djangoproject.com/en/3.0/topics/db/managers/#creating-a-manager-with-queryset-methods for more info.
mendozao, WhyNotHugo, henribru, MHM5000, ruohola and 3 morewoochica
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working