KEMBAR78
get_dynamic_class_hook for method calls · Issue #7266 · python/mypy · GitHub
Skip to content

get_dynamic_class_hook for method calls #7266

@mkurnikov

Description

@mkurnikov

In Django, there's a method from_queryset(), which creates a new subclass of Manager based on passed QuerySet class
https://docs.djangoproject.com/en/2.2/topics/db/managers/#from-queryset

get_dynamic_class_hook is a hook to use it this case, but unfortunately it only called for functions, not for methods.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions