Support Numpy 2 via supporting Cirq 1.5+ #566
pr.yaml
on: pull_request
pytest
7m 58s
dev-tools
4m 20s
notebooks
7m 31s
format
1m 16s
pylint
2m 48s
mypy
1m 50s
autogenerate-notebooks
3m 4s
Annotations
13 errors
|
format
Process completed with exit code 1.
|
|
format:
qualtran/_infra/composite_bloq.py#L0
would reformat
|
|
mypy:
qualtran/bloqs/block_encoding/product.py#L233
Incompatible types in assignment (expression has type "Soquet | ndarray[tuple[int, ...], dtype[Any]]", target has type "_Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes]") [assignment]
|
|
mypy:
qualtran/bloqs/data_loading/select_swap_qrom.py#L256
Invalid index type "tuple[object, ...]" for "ndarray[tuple[int, ...], dtype[Any]]"; expected type "SupportsIndex | slice[Any, Any, Any] | EllipsisType | _SupportsArray[dtype[numpy.bool[builtins.bool]] | dtype[integer[Any]]] | _NestedSequence[_SupportsArray[dtype[numpy.bool[builtins.bool]] | dtype[integer[Any]]]] | builtins.bool | int | _NestedSequence[builtins.bool | int] | None | tuple[SupportsIndex | slice[Any, Any, Any] | EllipsisType | _SupportsArray[dtype[numpy.bool[builtins.bool]] | dtype[integer[Any]]] | _NestedSequence[_SupportsArray[dtype[numpy.bool[builtins.bool]] | dtype[integer[Any]]]] | builtins.bool | int | _NestedSequence[builtins.bool | int] | None, ...]" [index]
|
|
mypy:
qualtran/bloqs/arithmetic/bitwise.py#L158
Incompatible types in assignment (expression has type "Soquet | ndarray[tuple[int, ...], dtype[Any]]", target has type "_Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes]") [assignment]
|
|
mypy:
qualtran/bloqs/qsp/generalized_qsp.py#L111
Argument 1 to "append" of "list" has incompatible type "inexact[Any, float | complex] | object_"; expected "complex" [arg-type]
|
|
mypy:
qualtran/bloqs/qsp/generalized_qsp.py#L109
Argument 1 to "append" of "list" has incompatible type "inexact[Any, float | complex] | object_"; expected "complex" [arg-type]
|
|
mypy:
qualtran/bloqs/qsp/generalized_qsp.py#L107
Argument 1 to "append" of "list" has incompatible type "inexact[Any, float | complex] | object_"; expected "complex" [arg-type]
|
|
mypy:
qualtran/bloqs/for_testing/many_registers.py#L63
Incompatible types in assignment (expression has type "Soquet", target has type "_Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes]") [assignment]
|
|
mypy:
qualtran/_infra/data_types.py#L411
Incompatible return value type (got "unsignedinteger[_64Bit] | ndarray[tuple[int, ...], dtype[unsignedinteger[_64Bit]]]", expected "ndarray[tuple[int, ...], dtype[integer[Any]]]") [return-value]
|
|
mypy:
qualtran/linalg/polynomial/qsp_testing.py#L37
Argument 1 to "Polynomial" has incompatible type "Sequence[complex] | Polynomial | Shaped"; expected "_SupportsArray[dtype[number[Any, int | float | complex] | numpy.bool[builtins.bool] | object_]] | Sequence[int | float | complex | number[Any, int | float | complex] | numpy.bool[builtins.bool] | object_ | _SupportsCoefOps[Any]]" [arg-type]
|
|
mypy
Argument 1 to "Polynomial" has incompatible type "Sequence[complex] | Polynomial | Shaped"; expected "_SupportsArray[dtype[number[Any, int | float | complex] | numpy.bool[builtins.bool] | object_]] | Sequence[int | float | complex | number[Any, int | float | complex] | numpy.bool[builtins.bool] | object_ | _SupportsCoefOps[Any]]" [arg-type]
|
|
dev-tools
Process completed with exit code 1.
|