ENH: add quantile function with weights support
#1598
Annotations
10 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)
|