Skip to content

Commit

Permalink
mypy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony-Gandon committed Feb 21, 2025
1 parent 4941013 commit 5689f37
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions qiskit_nature/second_q/mappers/mixed_mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def __init__(
self,
mappers: dict[str, QubitMapper],
hilbert_space_register_lengths: dict[str, int],
hilbert_space_register_types: dict[str, SparseLabelOp],
hilbert_space_register_types: dict[str, type[SparseLabelOp]],
):
"""
Args:
Expand All @@ -73,7 +73,9 @@ def __init__(
super().__init__()
self.mappers: dict[str, QubitMapper] = mappers
self.hilbert_space_register_lengths: dict[str, int] = hilbert_space_register_lengths
self.hilbert_space_register_types: dict[str, SparseLabelOp] = hilbert_space_register_types
self.hilbert_space_register_types: dict[str, type[SparseLabelOp]] = (
hilbert_space_register_types
)

def _map_tuple_product(
self, active_indices: tuple[str], active_operators: tuple[SparseLabelOp]
Expand Down

0 comments on commit 5689f37

Please sign in to comment.