mirror of
https://github.com/davidhalter/parso.git
synced 2025-12-07 21:34:32 +08:00
20 lines
277 B
Python
20 lines
277 B
Python
#!/usr/bin/env python3
|
|
from typing import ClassVar, List
|
|
|
|
print(1, 2)
|
|
|
|
# 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] = []
|