We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c203556 commit c1a661aCopy full SHA for c1a661a
mypy_django_plugin/transformers/models.py
@@ -343,7 +343,8 @@ 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, [])])
+ assert self.model_classdef.info.self_type is not None
347
+ manager_type = Instance(manager_info, [self.model_classdef.info.self_type])
348
self.add_new_node_to_model_class(manager_name, manager_type, is_classvar=True)
349
350
if incomplete_manager_defs:
0 commit comments