Skip to content

Commit

Permalink
fix previously renamed type-def (ResultIdTuple back to _ResultIdTuple) (
Browse files Browse the repository at this point in the history
  • Loading branch information
trvto authored Aug 31, 2023
1 parent ada0a12 commit e846e8a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pytket/pytket/backends/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
)
from .backendinfo import BackendInfo
from .backendresult import BackendResult
from .resulthandle import ResultHandle, ResultIdTuple
from .resulthandle import ResultHandle, _ResultIdTuple
from .status import CircuitStatus

ResultCache = Dict[str, Any]
Expand Down Expand Up @@ -219,7 +219,7 @@ def get_compiled_circuits(

@property
@abstractmethod
def _result_id_type(self) -> ResultIdTuple:
def _result_id_type(self) -> _ResultIdTuple:
"""Identifier type signature for ResultHandle for this backend.
:return: Type signature (tuple of hashable types)
Expand Down
2 changes: 1 addition & 1 deletion pytket/pytket/backends/resulthandle.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

# mypy doesn't think you can pass the tuple to Union
BasicHashType = Union[int, float, complex, str, bool, bytes]
ResultIdTuple = Tuple[
_ResultIdTuple = Tuple[
Union[Type[int], Type[float], Type[complex], Type[str], Type[bool], Type[bytes]],
...,
]
Expand Down
4 changes: 2 additions & 2 deletions pytket/tests/simulator/tket_sim_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
from pytket.backends.backend import Backend, KwargTypes
from pytket.backends.backend_exceptions import CircuitNotRunError
from pytket.backends.backendresult import BackendResult
from pytket.backends.resulthandle import ResultHandle, ResultIdTuple
from pytket.backends.resulthandle import ResultHandle, _ResultIdTuple
from pytket.backends.status import CircuitStatus, StatusEnum
from pytket.passes import (
BasePass,
Expand Down Expand Up @@ -86,7 +86,7 @@ def __init__(self, ignore_measures: bool = False):
self._ignore_measures = ignore_measures

@property
def _result_id_type(self) -> ResultIdTuple:
def _result_id_type(self) -> _ResultIdTuple:
return (str,)

@property
Expand Down

0 comments on commit e846e8a

Please sign in to comment.