summaryrefslogtreecommitdiff
path: root/testsuite/python3.py
blob: fde4281cfb4590c2673df047952193646b4c980e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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] = []