You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is sometimes a disconnect between the function signatures from nanobind that cause mypy to complain.
Details
Here's an example I saw recently, as of now, these have been crudely addressed by adding # type: ignore[...]
tests/fast_pauli/test_pauli_string.py:86: error: Argument 1 to "PauliString" has incompatible type "Sequence[Any]"; expected "str" [arg-type]
tests/fast_pauli/test_pauli_string.py:99: error: Argument 1 to "PauliString" has incompatible type "Sequence[Any]"; expected "str" [arg-type]
tests/fast_pauli/test_pauli_op.py:532: error: Unsupported operand types for + ("PauliString" and "PauliOp") [operator]
tests/fast_pauli/test_pauli_op.py:532: note: Both left and right operands are unions
tests/fast_pauli/test_pauli_op.py:537: error: Unsupported operand types for + ("PauliString" and "PauliOp") [operator]
tests/fast_pauli/test_pauli_op.py:537: note: Both left and right operands are unions
tests/fast_pauli/test_pauli_op.py:593: error: Unsupported operand types for + ("PauliString" and "PauliOp") [operator]
tests/fast_pauli/test_pauli_op.py:593: note: Both left and right operands are unions
tests/fast_pauli/test_pauli_op.py:599: error: Unsupported operand types for - ("PauliString" and "PauliOp") [operator]
tests/fast_pauli/test_pauli_op.py:599: note: Both left and right operands are unions
tests/fast_pauli/test_pauli_op.py:604: error: Unsupported operand types for + ("PauliString" and "PauliOp") [operator]
tests/fast_pauli/test_pauli_op.py:604: note: Both left and right operands are unions
Found 7 errors in 2 files (checked 18 source files)
The text was updated successfully, but these errors were encountered:
General
There is sometimes a disconnect between the function signatures from
nanobind
that causemypy
to complain.Details
Here's an example I saw recently, as of now, these have been crudely addressed by adding
# type: ignore[...]
The text was updated successfully, but these errors were encountered: