You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 16:59:52 +08:00
16 lines
278 B
Python
16 lines
278 B
Python
# 3.6+ type annotations on variables
|
|
from typing import List
|
|
|
|
# This test program is part of the uncompyle6 test suite
|
|
# tests STORE_ANNOTATION and SETUP_ANOTATIONS
|
|
|
|
# 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
|