You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 09:22:40 +08:00
Fix 3.7+ import as
This commit is contained in:
12
test/simple_source/bug36/02_var_annotate.py
Normal file
12
test/simple_source/bug36/02_var_annotate.py
Normal 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
|
Reference in New Issue
Block a user