mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 06:44:46 +08:00
reorder var_args if named arguments are in front of *args.
This commit is contained in:
@@ -32,6 +32,12 @@ nested_twice(2)
|
||||
#! 19 type-error-too-many-arguments
|
||||
nested_twice(2, 3, 4)
|
||||
|
||||
|
||||
# A named argument can be located before *args.
|
||||
def star_args_with_named(*args):
|
||||
return simple2(c='', *args)
|
||||
|
||||
star_args_with_named(1, 2)
|
||||
# -----------------
|
||||
# **kwargs
|
||||
# -----------------
|
||||
|
||||
Reference in New Issue
Block a user