ENH/TST: xp_assert_ enhancements
#1012
Annotations
6 errors
|
Format
Process completed with exit code 1.
|
|
Format
4 errors
|
|
Format:
src/array_api_extra/_lib/_testing.py#L235
Argument of type "float | None" cannot be assigned to parameter "rtol" of type "float" in function "assert_allclose"
Type "float | None" is not assignable to type "float"
"None" is not assignable to "float" (reportArgumentType)
|
|
Format:
src/array_api_extra/_lib/_testing.py#L172
Argument of type "Array" cannot be assigned to parameter "y" of type "_NumericArrayLike" in function "assert_array_less"
Type "Array" is not assignable to type "_NumericArrayLike"
"Array" is incompatible with protocol "_SupportsArray[dtype[numpy.bool[builtins.bool]] | dtype[number[Any, int | float | complex]]]"
"__array__" is not present
"Array" is incompatible with protocol "_NestedSequence[_SupportsArray[dtype[numpy.bool[builtins.bool]] | dtype[number[Any, int | float | complex]]]]"
"__len__" is not present
"__contains__" is not present
"__iter__" is not present
"__reversed__" is not present
... (reportArgumentType)
|
|
Format:
src/array_api_extra/_lib/_testing.py#L172
Argument of type "Array" cannot be assigned to parameter "x" of type "_NumericArrayLike" in function "assert_array_less"
Type "Array" is not assignable to type "_NumericArrayLike"
"Array" is incompatible with protocol "_SupportsArray[dtype[numpy.bool[builtins.bool]] | dtype[number[Any, int | float | complex]]]"
"__array__" is not present
"Array" is incompatible with protocol "_NestedSequence[_SupportsArray[dtype[numpy.bool[builtins.bool]] | dtype[number[Any, int | float | complex]]]]"
"__len__" is not present
"__contains__" is not present
"__iter__" is not present
"__reversed__" is not present
... (reportArgumentType)
|
|
Format:
src/array_api_extra/_lib/_testing.py#L172
No overloads for "assert_array_less" match the provided arguments (reportCallIssue)
|