From 2aeebfee4b41476ed039b64a009849955368e80e Mon Sep 17 00:00:00 2001 From: hauntsaninja Date: Wed, 16 Oct 2024 16:11:35 -0700 Subject: [PATCH] fix Fixes https://github.com/python/mypy/issues/17945 --- mypy/checkexpr.py | 1 + 1 file changed, 1 insertion(+) 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(), )