Skip to content

Bump NumPy to 2.1.0 #378

Bump NumPy to 2.1.0

Bump NumPy to 2.1.0 #378

Triggered via pull request August 18, 2024 23:43
Status Failure
Total duration 1m 33s
Artifacts

ci.yml

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

Annotations

10 errors
lint: optype/numpy/_any_array.py#L151
Type "StringDType" cannot be assigned to type variable "_DT_co@CanArray"   Type "StringDType" is incompatible with bound type "dtype[generic]" for type variable "_DT_co@CanArray"     "StringDType" is incompatible with "dtype[generic]"       Type parameter "_DTypeScalar_co@dtype" is covariant, but "str" is not a subtype of "generic"         "str" is incompatible with "generic" (reportInvalidTypeArguments)
lint: optype/numpy/_any_dtype.py#L459
Type "StringDType" cannot be assigned to type variable "_DT_co@HasDType"   Type "StringDType" is incompatible with bound type "DType[generic]" for type variable "_DT_co@HasDType"     "StringDType" is incompatible with "dtype[generic]"       Type parameter "_DTypeScalar_co@dtype" is covariant, but "str" is not a subtype of "generic"         "str" is incompatible with "generic" (reportInvalidTypeArguments)
lint: optype/numpy/_any_dtype.py#L463
Type "StringDType" cannot be assigned to type variable "_DT_co@HasDType"   Type "StringDType" is incompatible with bound type "DType[generic]" for type variable "_DT_co@HasDType"     "StringDType" is incompatible with "dtype[generic]"       Type parameter "_DTypeScalar_co@dtype" is covariant, but "str" is not a subtype of "generic"         "str" is incompatible with "generic" (reportInvalidTypeArguments)
lint: optype/numpy/_array.py#L53
Return type, "ndarray[_ShapeT_co@CanArray, dtype[Unknown]]", is partially unknown (reportUnknownParameterType)
lint: optype/numpy/_array.py#L53
Could not specialize type "Array[_ShapeT@Array, _SCT@Array]"   Type "_DT_co@CanArray" is incompatible with type "generic"     "dtype[generic]*" is incompatible with "generic" (reportInvalidTypeForm)
lint: tests/numpy/test_ufunc.py#L65
Expression of type "_UFunc_Nin1_Nout1[Literal['exp'], Literal[10], None]" is incompatible with declared type "UFunc[(Any) -> Any, int, int, LiteralString | None, float | None]"   "_UFunc_Nin1_Nout1[Literal['exp'], Literal[10], None]" is incompatible with protocol "UFunc[(Any) -> Any, int, int, LiteralString | None, float | None]"     "UFunc[_FT_co@UFunc, _NInT_co@UFunc, _NoutT_co@UFunc, _SigT_co@UFunc, _IdT_co@UFunc]" is incompatible with "_UFunc_Nin1_Nout1[Literal['exp'], Literal[10], None]"     "UFunc[_FT_co@UFunc, _NInT_co@UFunc, _NoutT_co@UFunc, _SigT_co@UFunc, _IdT_co@UFunc]" is incompatible with "_UFunc_Nin1_Nout1[Literal['exp'], Literal[10], None]"     "UFunc[_FT_co@UFunc, _NInT_co@UFunc, _NoutT_co@UFunc, _SigT_co@UFunc, _IdT_co@UFunc]" is incompatible with "_UFunc_Nin1_Nout1[Literal['exp'], Literal[10], None]"     "UFunc[_FT_co@UFunc, _NInT_co@UFunc, _NoutT_co@UFunc, _SigT_co@UFunc, _IdT_co@UFunc]" is incompatible with "_UFunc_Nin1_Nout1[Literal['exp'], Literal[10], None]"     "UFunc[_FT_co@UFunc, _NInT_co@UFunc, _NoutT_co@UFunc, _SigT_co@UFunc, _IdT_co@UFunc]" is incompatible with "_UFunc_Nin1_Nout1[Literal['exp'], Literal[10], None]"     "UFunc[_FT_co@UFunc, _NInT_co@UFunc, _NoutT_co@UFunc, _SigT_co@UFunc, _IdT_co@UFunc]" is incompatible with "_UFunc_Nin1_Nout1[Literal['exp'], Literal[10], None]"     "UFunc[_FT_co@UFunc, _NInT_co@UFunc, _NoutT_co@UFunc, _SigT_co@UFunc, _IdT_co@UFunc]" is incompatible with "_UFunc_Nin1_Nout1[Literal['exp'], Literal[10], None]" ... (reportAssignmentType)
lint: tests/numpy/test_ufunc.py#L66
Expression of type "_UFunc_Nin1_Nout1[Literal['exp'], Literal[10], None]" is incompatible with declared type "UFunc[(Any, Any) -> Any, int, int, LiteralString | None, float | None]"   "_UFunc_Nin1_Nout1[Literal['exp'], Literal[10], None]" is incompatible with protocol "UFunc[(Any, Any) -> Any, int, int, LiteralString | None, float | None]"     "UFunc[_FT_co@UFunc, _NInT_co@UFunc, _NoutT_co@UFunc, _SigT_co@UFunc, _IdT_co@UFunc]" is incompatible with "_UFunc_Nin1_Nout1[Literal['exp'], Literal[10], None]"     "UFunc[_FT_co@UFunc, _NInT_co@UFunc, _NoutT_co@UFunc, _SigT_co@UFunc, _IdT_co@UFunc]" is incompatible with "_UFunc_Nin1_Nout1[Literal['exp'], Literal[10], None]"     "UFunc[_FT_co@UFunc, _NInT_co@UFunc, _NoutT_co@UFunc, _SigT_co@UFunc, _IdT_co@UFunc]" is incompatible with "_UFunc_Nin1_Nout1[Literal['exp'], Literal[10], None]"     "UFunc[_FT_co@UFunc, _NInT_co@UFunc, _NoutT_co@UFunc, _SigT_co@UFunc, _IdT_co@UFunc]" is incompatible with "_UFunc_Nin1_Nout1[Literal['exp'], Literal[10], None]"     "UFunc[_FT_co@UFunc, _NInT_co@UFunc, _NoutT_co@UFunc, _SigT_co@UFunc, _IdT_co@UFunc]" is incompatible with "_UFunc_Nin1_Nout1[Literal['exp'], Literal[10], None]"     "UFunc[_FT_co@UFunc, _NInT_co@UFunc, _NoutT_co@UFunc, _SigT_co@UFunc, _IdT_co@UFunc]" is incompatible with "_UFunc_Nin1_Nout1[Literal['exp'], Literal[10], None]"     "UFunc[_FT_co@UFunc, _NInT_co@UFunc, _NoutT_co@UFunc, _SigT_co@UFunc, _IdT_co@UFunc]" is incompatible with "_UFunc_Nin1_Nout1[Literal['exp'], Literal[10], None]" ... (reportAssignmentType)
lint: tests/numpy/test_ufunc.py#L75
Expression of type "_UFunc_Nin1_Nout1[Literal['exp'], Literal[10], None]" is incompatible with declared type "UFunc[(...) -> _ScalarOrArray[inexact[Any] | object_], _N1, _N1, None, None]"   "_UFunc_Nin1_Nout1[Literal['exp'], Literal[10], None]" is incompatible with protocol "UFunc[(...) -> _ScalarOrArray[inexact[Any] | object_], _N1, _N1, None, None]"     "UFunc[_FT_co@UFunc, _NInT_co@UFunc, _NoutT_co@UFunc, _SigT_co@UFunc, _IdT_co@UFunc]" is incompatible with "_UFunc_Nin1_Nout1[Literal['exp'], Literal[10], None]"     "UFunc[_FT_co@UFunc, _NInT_co@UFunc, _NoutT_co@UFunc, _SigT_co@UFunc, _IdT_co@UFunc]" is incompatible with "_UFunc_Nin1_Nout1[Literal['exp'], Literal[10], None]"     "UFunc[_FT_co@UFunc, _NInT_co@UFunc, _NoutT_co@UFunc, _SigT_co@UFunc, _IdT_co@UFunc]" is incompatible with "_UFunc_Nin1_Nout1[Literal['exp'], Literal[10], None]"     "UFunc[_FT_co@UFunc, _NInT_co@UFunc, _NoutT_co@UFunc, _SigT_co@UFunc, _IdT_co@UFunc]" is incompatible with "_UFunc_Nin1_Nout1[Literal['exp'], Literal[10], None]"     "UFunc[_FT_co@UFunc, _NInT_co@UFunc, _NoutT_co@UFunc, _SigT_co@UFunc, _IdT_co@UFunc]" is incompatible with "_UFunc_Nin1_Nout1[Literal['exp'], Literal[10], None]"     "UFunc[_FT_co@UFunc, _NInT_co@UFunc, _NoutT_co@UFunc, _SigT_co@UFunc, _IdT_co@UFunc]" is incompatible with "_UFunc_Nin1_Nout1[Literal['exp'], Literal[10], None]"     "UFunc[_FT_co@UFunc, _NInT_co@UFunc, _NoutT_co@UFunc, _SigT_co@UFunc, _IdT_co@UFunc]" is incompatible with "_UFunc_Nin1_Nout1[Literal['exp'], Literal[10], None]" ... (reportAssignmentType)
lint: tests/numpy/test_ufunc.py#L104
Expression of type "_UFunc_Nin2_Nout1[Literal['add'], Literal[22], Literal[0]]" is incompatible with declared type "UFunc[(Any, Any) -> Any, int, int, LiteralString | None, float | None]"   "_UFunc_Nin2_Nout1[Literal['add'], Literal[22], Literal[0]]" is incompatible with protocol "UFunc[(Any, Any) -> Any, int, int, LiteralString | None, float | None]"     "UFunc[_FT_co@UFunc, _NInT_co@UFunc, _NoutT_co@UFunc, _SigT_co@UFunc, _IdT_co@UFunc]" is incompatible with "_UFunc_Nin2_Nout1[Literal['add'], Literal[22], Literal[0]]"     "UFunc[_FT_co@UFunc, _NInT_co@UFunc, _NoutT_co@UFunc, _SigT_co@UFunc, _IdT_co@UFunc]" is incompatible with "_UFunc_Nin2_Nout1[Literal['add'], Literal[22], Literal[0]]"     "UFunc[_FT_co@UFunc, _NInT_co@UFunc, _NoutT_co@UFunc, _SigT_co@UFunc, _IdT_co@UFunc]" is incompatible with "_UFunc_Nin2_Nout1[Literal['add'], Literal[22], Literal[0]]"     "UFunc[_FT_co@UFunc, _NInT_co@UFunc, _NoutT_co@UFunc, _SigT_co@UFunc, _IdT_co@UFunc]" is incompatible with "_UFunc_Nin2_Nout1[Literal['add'], Literal[22], Literal[0]]"     "UFunc[_FT_co@UFunc, _NInT_co@UFunc, _NoutT_co@UFunc, _SigT_co@UFunc, _IdT_co@UFunc]" is incompatible with "_UFunc_Nin2_Nout1[Literal['add'], Literal[22], Literal[0]]"     "UFunc[_FT_co@UFunc, _NInT_co@UFunc, _NoutT_co@UFunc, _SigT_co@UFunc, _IdT_co@UFunc]" is incompatible with "_UFunc_Nin2_Nout1[Literal['add'], Literal[22], Literal[0]]"     "UFunc[_FT_co@UFunc, _NInT_co@UFunc, _NoutT_co@UFunc, _SigT_co@UFunc, _IdT_co@UFunc]" is incompatible with "_UFunc_Nin2_Nout1[Literal['add'], Literal[22], Literal[0]]" ... (reportAssignmentType)
lint: tests/numpy/test_ufunc.py#L105
Expression of type "_UFunc_Nin2_Nout1[Literal['add'], Literal[22], Literal[0]]" is incompatible with declared type "UFunc[(Any, Any, Any) -> Any, int, int, LiteralString | None, float | None]"   "_UFunc_Nin2_Nout1[Literal['add'], Literal[22], Literal[0]]" is incompatible with protocol "UFunc[(Any, Any, Any) -> Any, int, int, LiteralString | None, float | None]"     "UFunc[_FT_co@UFunc, _NInT_co@UFunc, _NoutT_co@UFunc, _SigT_co@UFunc, _IdT_co@UFunc]" is incompatible with "_UFunc_Nin2_Nout1[Literal['add'], Literal[22], Literal[0]]"     "UFunc[_FT_co@UFunc, _NInT_co@UFunc, _NoutT_co@UFunc, _SigT_co@UFunc, _IdT_co@UFunc]" is incompatible with "_UFunc_Nin2_Nout1[Literal['add'], Literal[22], Literal[0]]"     "UFunc[_FT_co@UFunc, _NInT_co@UFunc, _NoutT_co@UFunc, _SigT_co@UFunc, _IdT_co@UFunc]" is incompatible with "_UFunc_Nin2_Nout1[Literal['add'], Literal[22], Literal[0]]"     "UFunc[_FT_co@UFunc, _NInT_co@UFunc, _NoutT_co@UFunc, _SigT_co@UFunc, _IdT_co@UFunc]" is incompatible with "_UFunc_Nin2_Nout1[Literal['add'], Literal[22], Literal[0]]"     "UFunc[_FT_co@UFunc, _NInT_co@UFunc, _NoutT_co@UFunc, _SigT_co@UFunc, _IdT_co@UFunc]" is incompatible with "_UFunc_Nin2_Nout1[Literal['add'], Literal[22], Literal[0]]"     "UFunc[_FT_co@UFunc, _NInT_co@UFunc, _NoutT_co@UFunc, _SigT_co@UFunc, _IdT_co@UFunc]" is incompatible with "_UFunc_Nin2_Nout1[Literal['add'], Literal[22], Literal[0]]"     "UFunc[_FT_co@UFunc, _NInT_co@UFunc, _NoutT_co@UFunc, _SigT_co@UFunc, _IdT_co@UFunc]" is incompatible with "_UFunc_Nin2_Nout1[Literal['add'], Literal[22], Literal[0]]" ... (reportAssignmentType)