mirror of
https://github.com/davidhalter/parso.git
synced 2026-10-15 02:31:08 +08:00
Add some tests for python3.
This commit is contained in:
1 parent
e47c9d72fa
commit
a3129ad8ef
2 files changed
+22
-1
No files matched your search
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env python3
|
||||
from typing import ClassVar, List
|
||||
|
||||
|
||||
# Annotated function (Issue #29)
|
||||
def foo(x: int) -> int:
|
||||
return x + 1
|
||||
|
||||
|
||||
# Annotated variables #575
|
||||
CONST: int = 42
|
||||
|
||||
|
||||
class Class:
|
||||
cls_var: ClassVar[str]
|
||||
|
||||
def m(self):
|
||||
xs: List[int] = []
|
||||
Reference in new issue
Block a user