You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
10 lines
262 B
Python
10 lines
262 B
Python
# From 3.7.3 dataclasses.py
|
|
# Bug was handling precedence. Need parenthesis before IfExp.
|
|
#
|
|
# RUNNABLE!
|
|
def _hash_add(fields):
|
|
flds = [f for f in fields if (4 if f is None else f)]
|
|
return flds
|
|
|
|
assert _hash_add([None, True, False, 3]) == [None, True, 3]
|