You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
19 lines
394 B
Python
19 lines
394 B
Python
# Related to #426
|
|
|
|
# This file is RUNNABLE!
|
|
"""This program is self-checking!"""
|
|
|
|
a = 5
|
|
class MakeClosureTest():
|
|
# This function uses MAKE_CLOSURE with annotation args
|
|
def __init__(self, dev: str, b: bool):
|
|
super().__init__()
|
|
self.dev = dev
|
|
self.b = b
|
|
self.a = a
|
|
|
|
x = MakeClosureTest("dev", True)
|
|
assert x.dev == "dev"
|
|
assert x.b == True
|
|
assert x.a == 5
|