Bump NumPy to 2.1.0 #378
Annotations
10 errors
basedpyright:
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)
|
basedpyright:
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)
|
basedpyright:
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)
|
basedpyright:
optype/numpy/_array.py#L53
Return type, "ndarray[_ShapeT_co@CanArray, dtype[Unknown]]", is partially unknown (reportUnknownParameterType)
|
basedpyright:
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)
|
basedpyright:
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)
|
basedpyright:
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)
|
basedpyright:
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)
|
basedpyright:
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)
|
basedpyright:
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)
|
Loading