summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRach Belaid <rachid.belaid@gmail.com>2017-03-22 23:05:17 -0700
committerGitHub <noreply@github.com>2017-03-22 23:05:17 -0700
commit0d70cc8fb27240390e252881615f740103535c93 (patch)
treeb6f1c921588756ef90395890e1a95bbd3e62b262
parent27ed964c2fc3340d145e9f602400af2f6d039350 (diff)
downloadpep8-0d70cc8fb27240390e252881615f740103535c93.tar.gz
Add test when variable with annotation start with a keyword
-rw-r--r--testsuite/python3.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/testsuite/python3.py b/testsuite/python3.py
index fde4281..fce0abc 100644
--- a/testsuite/python3.py
+++ b/testsuite/python3.py
@@ -13,6 +13,16 @@ CONST: int = 42
class Class:
cls_var: ClassVar[str]
-
+ for_var: ClassVar[str]
+ while_var: ClassVar[str]
+ def_var: ClassVar[str]
+ if_var: ClassVar[str]
+ elif_var: ClassVar[str]
+ else_var: ClassVar[str]
+ try_var: ClassVar[str]
+ except_var: ClassVar[str]
+ finally_var: ClassVar[str]
+ with_var: ClassVar[str]
+
def m(self):
xs: List[int] = []