diff --git a/mypy/checkexpr.py b/mypy/checkexpr.py index 8d1833a772e2..b06aaa8f89f5 100644 --- a/mypy/checkexpr.py +++ b/mypy/checkexpr.py @@ -3814,6 +3814,7 @@ def check_method_call_by_name( is_operator=True, msg=self.msg, original_type=original_type, + self_type=base_type, chk=self.chk, in_literal_context=self.is_literal_context(), )