Skip to content

ENH: add quantile function with weights support #1597

ENH: add quantile function with weights support

ENH: add quantile function with weights support #1597

Triggered via pull request October 21, 2025 16:39
Status Cancelled
Total duration 1m 31s
Artifacts

ci.yml

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

Annotations

19 errors
Lint
9 errors
Lint: src/array_api_extra/_lib/_quantile.py#L63
Cannot access attribute "shape" for class "float"   Attribute "shape" is unknown (reportAttributeAccessIssue)
Lint: src/array_api_extra/_lib/_quantile.py#L57
Cannot access attribute "shape" for class "float"   Attribute "shape" is unknown (reportAttributeAccessIssue)
Lint: src/array_api_extra/_lib/_quantile.py#L52
Argument of type "tuple[int, ...] | Literal[1]" cannot be assigned to parameter "n" of type "int" in function "_quantile_hf"   Type "tuple[int, ...] | Literal[1]" is not assignable to type "int"     "tuple[int, ...]" is not assignable to "int" (reportArgumentType)
Lint: src/array_api_extra/_lib/_quantile.py#L52
Argument of type "Array | float" cannot be assigned to parameter "p" of type "Array" in function "_quantile_hf"   Type "Array | float" is not assignable to type "Array"     "float" is incompatible with protocol "Array"       "__invert__" is not present       "__matmul__" is not present       "__and__" is not present       "__or__" is not present       "__xor__" is not present       "__lshift__" is not present ... (reportArgumentType)
Lint: src/array_api_extra/_lib/_quantile.py#L40
Condition will always evaluate to False since the types "tuple[int, ...]" and "Literal[0]" have no overlap (reportUnnecessaryComparison)
Lint: src/array_api_extra/_lib/_quantile.py#L27
Cannot access attribute "ndim" for class "float"   Attribute "ndim" is unknown (reportAttributeAccessIssue)
Lint: src/array_api_extra/_delegation.py#L947
"quantile" is not a known attribute of module "._lib._funcs" (reportAttributeAccessIssue)
Lint: src/array_api_extra/_delegation.py#L933
Operator "<" not supported for "None" (reportOptionalOperand)
Lint: src/array_api_extra/_delegation.py#L933
Operator ">=" not supported for "None" (reportOptionalOperand)
Test tests-py313
Canceling since a higher priority waiting request for CI-refs/pull/494/merge exists
Test tests-numpy1
Canceling since a higher priority waiting request for CI-refs/pull/494/merge exists
Test tests-nogil
Canceling since a higher priority waiting request for CI-refs/pull/494/merge exists
Test tests-nogil
The operation was canceled.
Test tests-backends
Canceling since a higher priority waiting request for CI-refs/pull/494/merge exists
Test tests-backends
The operation was canceled.
Test tests-backends-py310
Canceling since a higher priority waiting request for CI-refs/pull/494/merge exists
Test tests-backends-py310
The operation was canceled.
CI
Canceling since a higher priority waiting request for CI-refs/pull/494/merge exists