Files
python-uncompyle6/test/simple_source/bug36/02_var_annotate.py
2020-01-01 22:59:07 -05:00

13 lines
174 B
Python

# 3.6+ type annotations on variables
from typing import List
# RUNNABLE!
y = 2
x: bool
z: int = 5
x = (z == 5)
assert x
assert y == 2
v: List[int] = [1, 2]
assert v[1] == y