Python: Support unpacking of keyword arguments.

This commit is contained in:
Rasmus Lerchedahl Petersen
2020-09-29 15:36:38 +02:00
parent e02cfbf6b0
commit 30d048f9d4
3 changed files with 43 additions and 2 deletions

View File

@@ -378,7 +378,7 @@ def test_call_unpack_iterable():
def test_call_unpack_mapping():
SINK(second(NONSOURCE, **{"b": SOURCE})) # Flow missing
SINK(second(NONSOURCE, **{"b": SOURCE}))
def f_extra_pos(a, *b):
@@ -474,7 +474,7 @@ def test_lambda_unpack_mapping():
def second(a, b):
return b
SINK(second(NONSOURCE, **{"b": SOURCE})) # Flow missing
SINK(second(NONSOURCE, **{"b": SOURCE}))
def test_lambda_extra_pos():