diff --git a/mypy_django_plugin/transformers/managers.py b/mypy_django_plugin/transformers/managers.py index c1d0e9177..65320ddbd 100644 --- a/mypy_django_plugin/transformers/managers.py +++ b/mypy_django_plugin/transformers/managers.py @@ -135,7 +135,7 @@ def _process_dynamic_method( ): ret_type = _replace_type_var(ret_type, base_that_has_method.defn.type_vars[0].fullname, typed_var[0]) args_types = [ - _replace_type_var(arg_type, base_that_has_method.defn.type_vars[0].fullname, manager_instance.args[0]) + _replace_type_var(arg_type, base_that_has_method.defn.type_vars[0].fullname, typed_var[0]) for arg_type in args_types ] if base_that_has_method.self_type: