From e06e93e0dc6193e3b4045b470fd6ec5b022e50fc Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Tue, 5 Oct 2021 20:23:22 -0400 Subject: add example cases for incorrect E275 from reverted patch --- testsuite/E27.py | 2 ++ testsuite/python3.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/testsuite/E27.py b/testsuite/E27.py index 888b3a8..9bb53f8 100644 --- a/testsuite/E27.py +++ b/testsuite/E27.py @@ -42,3 +42,5 @@ try: from importable.module import(e, f) except ImportError: pass +#: Okay +matched = {"true": True, "false": False} diff --git a/testsuite/python3.py b/testsuite/python3.py index 709695a..959956e 100644 --- a/testsuite/python3.py +++ b/testsuite/python3.py @@ -9,6 +9,8 @@ def foo(x: int) -> int: # Annotated variables #575 CONST: int = 42 +match: int = 42 +case: int = 42 class Class: -- cgit v1.2.1