def test_pauli_type_mismatch() -> None:
    """Test that the input paulis are not a sequence of PauliStrings."""
    qubits = cirq.LineQubit.range(5)

    circuit = cirq.FrozenCircuit(_create_ghz(5, qubits))

    circuits_to_pauli: dict[cirq.FrozenCircuit, int] = {}
    circuits_to_pauli[circuit] = 1
    with pytest.raises(
        TypeError,
        match="Expected all elements to be either a sequence of PauliStrings or sequences of"
        " ops.PauliStrings. Got <class 'int'> instead.",
    ):
        measure_pauli_strings(
            circuits_to_pauli, cirq.Simulator(), 1000, 1000, 1000, "test"  # type: ignore[arg-type]
        )
Test that the input paulis are not a sequence of PauliStrings.
cirq-core/cirq/contrib/paulistring/pauli_string_measurement_with_readout_mitigation_test.py