Skip to content

Commit

Permalink
Add key/value type annotations to cirq.PauliString.items() (#3790)
Browse files Browse the repository at this point in the history
  • Loading branch information
Strilanc committed Feb 12, 2021
1 parent 2e5c45b commit bc108f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cirq/ops/pauli_string.py
Expand Up @@ -357,7 +357,7 @@ def with_coefficient(self, new_coefficient: Union[int, float, complex]) -> 'Paul
def values(self) -> ValuesView[pauli_gates.Pauli]:
return self._qubit_pauli_map.values()

def items(self) -> ItemsView:
def items(self) -> ItemsView[TKey, pauli_gates.Pauli]:
return self._qubit_pauli_map.items()

def frozen(self) -> 'cirq.PauliString':
Expand Down

0 comments on commit bc108f9

Please sign in to comment.