mirror of
https://github.com/github/codeql.git
synced 2026-05-19 21:57:13 +02:00
13 lines
265 B
Python
13 lines
265 B
Python
# PEP 798: Unpacking in comprehensions
|
|
|
|
flat_list = [*x for x in nested]
|
|
|
|
flat_set = {*x for x in nested}
|
|
|
|
merged = {**d for d in dicts}
|
|
|
|
gen = (*x for x in nested)
|
|
|
|
# Force the new parser (the old parser cannot handle lazy imports)
|
|
lazy import _pep798_parser_hint
|