Skip to content

BUG: testing: fix check_shape=False with broadcasting #2195

BUG: testing: fix check_shape=False with broadcasting

BUG: testing: fix check_shape=False with broadcasting #2195

Triggered via pull request May 14, 2026 11:37
Status Failure
Total duration 3m 59s
Artifacts

ci.yml

on: pull_request
Matrix: checks
Fit to window
Zoom out
Zoom in

Annotations

8 errors
Lint
Process completed with exit code 1.
Lint
6 errors
Lint: src/array_api_extra/_lib/_testing.py#L96
Unnecessary "# pyright: ignore" rule: "reportUnknownArgumentType" (reportUnnecessaryTypeIgnoreComment)
Lint: src/array_api_extra/_lib/_testing.py#L96
Argument of type "tuple[int | None, ...] | tuple[float, ...]" cannot be assigned to parameter "iterable" of type "Iterable[_SupportsProdNoDefaultT@prod]" in function "prod"   Type "tuple[int | None, ...] | tuple[float, ...]" is not assignable to type "Iterable[_SupportsProdNoDefaultT@prod]"     "tuple[int | None, ...]" is not assignable to "Iterable[_SupportsProdNoDefaultT@prod]"       Type parameter "_T_co@Iterable" is covariant, but "int | None" is not a subtype of "_SupportsProdNoDefaultT@prod"         Type "int | None" is not assignable to type "_SupportsProdWithNoDefaultGiven"           Type "int | None" is not assignable to type "_SupportsProdWithNoDefaultGiven" (reportArgumentType)
Lint: src/array_api_extra/_lib/_testing.py#L96
No overloads for "prod" match the provided arguments (reportCallIssue)
Lint: src/array_api_extra/_lib/_testing.py#L95
Unnecessary "# pyright: ignore" rule: "reportUnknownArgumentType" (reportUnnecessaryTypeIgnoreComment)
Lint: src/array_api_extra/_lib/_testing.py#L95
Argument of type "tuple[int | None, ...] | tuple[float, ...]" cannot be assigned to parameter "iterable" of type "Iterable[_SupportsProdNoDefaultT@prod]" in function "prod"   Type "tuple[int | None, ...] | tuple[float, ...]" is not assignable to type "Iterable[_SupportsProdNoDefaultT@prod]"     "tuple[int | None, ...]" is not assignable to "Iterable[_SupportsProdNoDefaultT@prod]"       Type parameter "_T_co@Iterable" is covariant, but "int | None" is not a subtype of "_SupportsProdNoDefaultT@prod"         Type "int | None" is not assignable to type "_SupportsProdWithNoDefaultGiven"           Type "int | None" is not assignable to type "_SupportsProdWithNoDefaultGiven" (reportArgumentType)
Lint: src/array_api_extra/_lib/_testing.py#L95
No overloads for "prod" match the provided arguments (reportCallIssue)