ENH: add quantile function with weights support
#1601
Annotations
11 errors
|
Lint:
src/array_api_extra/_lib/_quantile.py#L132
Argument of type "Device" cannot be assigned to parameter "xp" of type "ModuleType" in function "_weighted_quantile_sorted_1d"
"Device" is not assignable to "ModuleType" (reportArgumentType)
|
|
Lint:
src/array_api_extra/_lib/_quantile.py#L132
Argument of type "Device" cannot be assigned to parameter "nan_policy" of type "str" in function "_weighted_quantile_sorted_1d"
"Device" is not assignable to "str" (reportArgumentType)
|
|
Lint:
src/array_api_extra/_lib/_quantile.py#L132
Argument of type "Device" cannot be assigned to parameter "average" of type "bool" in function "_weighted_quantile_sorted_1d"
"Device" is not assignable to "bool" (reportArgumentType)
|
|
Lint:
src/array_api_extra/_lib/_quantile.py#L132
Argument of type "Device" cannot be assigned to parameter "n" of type "int" in function "_weighted_quantile_sorted_1d"
"Device" is not assignable to "int" (reportArgumentType)
|
|
Lint:
src/array_api_extra/_lib/_quantile.py#L124
Argument of type "Device" cannot be assigned to parameter "xp" of type "ModuleType" in function "_weighted_quantile_sorted_1d"
"Device" is not assignable to "ModuleType" (reportArgumentType)
|
|
Lint:
src/array_api_extra/_lib/_quantile.py#L124
Argument of type "Device" cannot be assigned to parameter "nan_policy" of type "str" in function "_weighted_quantile_sorted_1d"
"Device" is not assignable to "str" (reportArgumentType)
|
|
Lint:
src/array_api_extra/_lib/_quantile.py#L124
Argument of type "Device" cannot be assigned to parameter "average" of type "bool" in function "_weighted_quantile_sorted_1d"
"Device" is not assignable to "bool" (reportArgumentType)
|
|
Lint:
src/array_api_extra/_lib/_quantile.py#L124
Argument of type "Device" cannot be assigned to parameter "n" of type "int" in function "_weighted_quantile_sorted_1d"
"Device" is not assignable to "int" (reportArgumentType)
|
|
Lint:
src/array_api_extra/_lib/_quantile.py#L54
Argument of type "Array | None" cannot be assigned to parameter "weights" of type "Array" in function "_weighted_quantile"
Type "Array | None" is not assignable to type "Array"
"None" is incompatible with protocol "Array"
"__abs__" is not present
"__pos__" is not present
"__neg__" is not present
"__invert__" is not present
"__add__" is not present
"__sub__" is not present
... (reportArgumentType)
|
|
Lint:
src/array_api_extra/_delegation.py#L1133
Argument of type "float | Array" cannot be assigned to parameter "q" of type "Array" in function "quantile"
Type "float | Array" 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)
|
|
Test tests-numpy1
Process completed with exit code 1.
|