-
Notifications
You must be signed in to change notification settings - Fork 281
Closed
Closed
Feature
Copy link
Labels
needs-discussionAn issue where it's not clear whether there is a bug or we are behaving as expected.An issue where it's not clear whether there is a bug or we are behaving as expected.typechecking
Description
Describe the Bug
Would be nice if pyrefly recognizes that a code is guaranteed to crash because an unpacked list has too few elements to satisty the amout of need parameters. (It does not matter if the list is empty. It does not recognize any case where there are too few elements):
def fun1(a):
return
def fun2():
fun1(*[]) # no error by pyrefly
fun2() # obviously crashes: TypeError: fun1() missing 1 required positional argument: 'a'Sandbox Link
(Only applicable for extension issues) IDE Information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
needs-discussionAn issue where it's not clear whether there is a bug or we are behaving as expected.An issue where it's not clear whether there is a bug or we are behaving as expected.typechecking