We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c203556 commit fab8396Copy full SHA for fab8396
mypy_django_plugin/transformers/models.py
@@ -343,7 +343,7 @@ def run_with_model_cls(self, model_cls: Type[Model]) -> None:
343
incomplete_manager_defs.add(manager_name)
344
continue
345
346
- manager_type = Instance(manager_info, [Instance(self.model_classdef.info, [])])
+ manager_type = Instance(manager_info, [self.model_classdef.info.self_type])
347
self.add_new_node_to_model_class(manager_name, manager_type, is_classvar=True)
348
349
if incomplete_manager_defs:
0 commit comments