From 9d8047623fc24fda8423a3745804aa69a7b9e317 Mon Sep 17 00:00:00 2001 From: javabster Date: Fri, 1 Sep 2023 11:44:34 -0400 Subject: [PATCH] fixed mypy again? --- .../second_q/hamiltonians/lattices/hexagonal_lattice.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qiskit_nature/second_q/hamiltonians/lattices/hexagonal_lattice.py b/qiskit_nature/second_q/hamiltonians/lattices/hexagonal_lattice.py index 18c015caa..7ab362db9 100644 --- a/qiskit_nature/second_q/hamiltonians/lattices/hexagonal_lattice.py +++ b/qiskit_nature/second_q/hamiltonians/lattices/hexagonal_lattice.py @@ -11,7 +11,7 @@ # that they have been altered from the originals. """The hexagonal lattice""" -from typing import Mapping, Tuple +from typing import Dict, Tuple from rustworkx import generators @@ -74,7 +74,7 @@ def onsite_parameter(self) -> complex: """ return self._onsite_parameter - def _default_position(self) -> Mapping[int, Tuple]: + def _default_position(self) -> Dict[int, Tuple]: """Return a dictionary of default positions for visualization of a one- or two-dimensional lattice.