From 17850b3bd77ae9efb5d21f656c4e4e05ac48d894 Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Fri, 14 Jan 2022 17:15:48 +0300 Subject: [PATCH] Microrefactoring: `py_version <= 2` should be `py_version == 2` (#11986) --- mypy/checkexpr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mypy/checkexpr.py b/mypy/checkexpr.py index 391c7a59d60b..b05f9168ee12 100644 --- a/mypy/checkexpr.py +++ b/mypy/checkexpr.py @@ -2205,7 +2205,7 @@ def visit_op_expr(self, e: OpExpr) -> Type: return self.strfrm_checker.check_str_interpolation(e.left, e.right) if isinstance(e.left, StrExpr): return self.strfrm_checker.check_str_interpolation(e.left, e.right) - elif pyversion[0] <= 2: + elif pyversion[0] == 2: if isinstance(e.left, (StrExpr, BytesExpr, UnicodeExpr)): return self.strfrm_checker.check_str_interpolation(e.left, e.right) left_type = self.accept(e.left)