-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
bugSomething isn't workingSomething isn't workinghelp wantedContributions especially welcomeContributions especially welcometyMulti-file analysis & type inferenceMulti-file analysis & type inference
Description
Summary
from typing import Callable, TypeVarTuple, Unpack
def some_func() -> None: ...
T = TypeVarTuple("T")
def unpack(c: Callable[[Unpack[T]], object]):
pass
def _():
# red-knot: Argument to this function is incorrect: Expected `(*args: @Todo(todo signature *args), **kwargs: @Todo(todo signature **kwargs)) -> object`, found `def some_func() -> None` [lint:invalid-argument-type]
unpack(some_func)Version
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghelp wantedContributions especially welcomeContributions especially welcometyMulti-file analysis & type inferenceMulti-file analysis & type inference