Skip to content

Commit 65bdfee

Browse files
author
changsookim
committed
fix: type hint update for python3.9
1 parent 33a9984 commit 65bdfee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/qibo/backends/abstract.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ def __repr__(self):
3131

3232
@property
3333
@abc.abstractmethod
34-
def qubits(self) -> Optional[list[int | str]]: # pragma: no cover
34+
def qubits(self) -> Optional[list[Union[int, str]]]: # pragma: no cover
3535
"""Return the qubit names of the backend. If :class:`SimulationBackend`, return None."""
3636
raise_error(NotImplementedError)
3737

3838
@property
3939
@abc.abstractmethod
4040
def connectivity(
4141
self,
42-
) -> Optional[list[tuple[int | str, int | str]]]: # pragma: no cover
42+
) -> Optional[list[tuple[Union[int, str], Union[int, str]]]]: # pragma: no cover
4343
"""Return the available qubit pairs of the backend. If :class:`SimulationBackend`, return None."""
4444
raise_error(NotImplementedError)
4545

0 commit comments

Comments
 (0)