Fix 3.7+ import as

This commit is contained in:
rocky
2020-01-01 22:59:07 -05:00
parent 6de57249ed
commit c42e16fafe
8 changed files with 30 additions and 12 deletions

View File

@@ -0,0 +1,12 @@
# 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