-
Notifications
You must be signed in to change notification settings - Fork 219
Closed
astral-sh/ruff
#22805Labels
bugSomething isn't workingSomething isn't workingruntime semanticsAccurate modeling of how Python's semantics work at runtimeAccurate modeling of how Python's semantics work at runtime
Milestone
Description
Summary
This incorrect code passes type checking:
def some_fn(a: int):
pass
some_fn(*None)But fails at runtime:
TypeError: some_fn() argument after * must be an iterable, not NoneType
On the other hand, this is correctly flagged as an error:
b = *NoneVersion
ty 0.0.7
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingruntime semanticsAccurate modeling of how Python's semantics work at runtimeAccurate modeling of how Python's semantics work at runtime