Skip to content

[functools] Use ParamSpec for single dispatch #35714

[functools] Use ParamSpec for single dispatch

[functools] Use ParamSpec for single dispatch #35714

Triggered via pull request April 8, 2026 14:59
Status Failure
Total duration 13m 34s
Artifacts

tests.yml

on: pull_request
Check typeshed structure
13s
Check typeshed structure
mypy: Run test cases
5m 8s
mypy: Run test cases
stub_uploader tests
5m 7s
stub_uploader tests
Matrix: mypy: Check stubs
Matrix: pyright: Run test cases
Fit to window
Zoom out
Zoom in

Annotations

17 errors
pyright: Run test cases (Linux, 3.12)
Exit code 1
pyright: Run test cases (Windows, 3.11)
Exit code 1
pyright: Run test cases (Windows, 3.12)
Exit code 1
pyright: Run test cases (Linux, 3.13)
4 errors
pyright: Run test cases (Linux, 3.13): stdlib/@tests/test_cases/check_functools.py#L137
Expected 1 positional argument (reportCallIssue)
pyright: Run test cases (Linux, 3.13): stdlib/@tests/test_cases/check_functools.py#L136
Expected 1 positional argument (reportCallIssue)
pyright: Run test cases (Linux, 3.13): stdlib/@tests/test_cases/check_functools.py#L123
Argument of type "Literal['']" cannot be assigned to parameter "cls" of type "type[_S@dispatch]" in function "dispatch"   Type "Literal['']" is not assignable to type "type[_S@dispatch]" (reportArgumentType)
pyright: Run test cases (Linux, 3.13): stdlib/@tests/test_cases/check_functools.py#L122
Argument of type "Literal[42]" cannot be assigned to parameter "cls" of type "type[_S@dispatch]" in function "dispatch"   Type "Literal[42]" is not assignable to type "type[_S@dispatch]" (reportArgumentType)
pyright: Run test cases (Darwin, 3.13)
Exit code 1
pyright: Run test cases (Linux, 3.11)
Exit code 1
pyright: Run test cases (Darwin, 3.14)
Exit code 1
pyright: Run test cases (Darwin, 3.11)
Exit code 1
pyright: Run test cases (Windows, 3.13)
Exit code 1
pyright: Run test cases (Darwin, 3.12)
Process completed with exit code 1.
pyright: Run test cases (Windows, 3.14)
Process completed with exit code 1.
mypy: Run test cases
Process completed with exit code 1.
pyright: Run test cases (Linux, 3.14)
Exit code 1