Skip to content

Commit e28b61d

Browse files
authored
Update error message
1 parent 29ab9f8 commit e28b61d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test-data/unit/check-typevar-tuple.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2657,8 +2657,8 @@ def task(a: int, b: str, *, task_status: TaskStatus[str]) -> None: ...
26572657

26582658
def test() -> None:
26592659
reveal_type(nursery_start(task, "a", 2)) # N: Revealed type is "builtins.str" \
2660-
# E: Argument 1 to "nursery_start" has incompatible type "Callable[[int, str, NamedArg(TaskStatus[str], 'task_status')], None]"; expected "NurseryStartFunc[str, int, str]" \
2661-
# N: "NurseryStartFunc[str, int, str].__call__" has type "Callable[[str, int, NamedArg(TaskStatus[str], 'task_status')], object]"
2660+
# 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]" \
2661+
# N: "NurseryStartFunc[str, int, str].__call__" has type "def __call__(str, int, /, *, task_status: TaskStatus[str]) -> object"
26622662
reveal_type(nursery_start(task, 1, "b")) # N: Revealed type is "builtins.str"
26632663
[builtins fixtures/tuple.pyi]
26642664

0 commit comments

Comments
 (0)