Skip to content

Commit 0d70cc8

Browse files
authored
Add test when variable with annotation start with a keyword
1 parent 27ed964 commit 0d70cc8

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

testsuite/python3.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,16 @@ def foo(x: int) -> int:
1313

1414
class Class:
1515
cls_var: ClassVar[str]
16-
16+
for_var: ClassVar[str]
17+
while_var: ClassVar[str]
18+
def_var: ClassVar[str]
19+
if_var: ClassVar[str]
20+
elif_var: ClassVar[str]
21+
else_var: ClassVar[str]
22+
try_var: ClassVar[str]
23+
except_var: ClassVar[str]
24+
finally_var: ClassVar[str]
25+
with_var: ClassVar[str]
26+
1727
def m(self):
1828
xs: List[int] = []

0 commit comments

Comments
 (0)