-
Notifications
You must be signed in to change notification settings - Fork 281
Closed
Labels
Description
Describe the Bug
Pyrefly gives me an incorrect bad-keyword-argument error (Multiple values for argument b in function fun5). This is only the case if I pass the triggering argument together with an unpacked list and not for unpacked dict or normal other arguements (as expected):
def fun1(a,b):
return
def fun2(a):
fun1(a,b=None) # gives no error
#############
def fun3(a,b):
return
def fun4(**kwargs):
fun3(**kwargs,b=None) # gives no error
#############
def fun5(a,b):
return
def fun6():
fun5(*[""], b=None) # gives Error [bad-keyword-argument]: Multiple values for argument `b` in function `fun5`
fun6() # no crash, as expectedSandbox Link
(Only applicable for extension issues) IDE Information
No response
Reactions are currently unavailable