Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update error message
  • Loading branch information
A5rocks authored Nov 26, 2025
commit e28b61dc5274255b36cb364b23a7a615d3d25f55
4 changes: 2 additions & 2 deletions test-data/unit/check-typevar-tuple.test
Original file line number Diff line number Diff line change
Expand Up @@ -2657,8 +2657,8 @@ def task(a: int, b: str, *, task_status: TaskStatus[str]) -> None: ...

def test() -> None:
reveal_type(nursery_start(task, "a", 2)) # N: Revealed type is "builtins.str" \
# E: Argument 1 to "nursery_start" has incompatible type "Callable[[int, str, NamedArg(TaskStatus[str], 'task_status')], None]"; expected "NurseryStartFunc[str, int, str]" \
# N: "NurseryStartFunc[str, int, str].__call__" has type "Callable[[str, int, NamedArg(TaskStatus[str], 'task_status')], object]"
# E: Argument 1 to "nursery_start" has incompatible type "def task(a: int, b: str, *, task_status: TaskStatus[str]) -> None"; expected "NurseryStartFunc[str, int, str]" \
# N: "NurseryStartFunc[str, int, str].__call__" has type "def __call__(str, int, /, *, task_status: TaskStatus[str]) -> object"
reveal_type(nursery_start(task, 1, "b")) # N: Revealed type is "builtins.str"
[builtins fixtures/tuple.pyi]

Expand Down