Skip to content

Commit

Permalink
Fixed linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
NischalQuTech committed Oct 21, 2024
1 parent 7c7687e commit d78c3dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions qiskit_quantuminspire/qi_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ def __init__(self, backend_type: BackendType, **kwargs: Any):
custom_name_mapping=_CQASM_QISKIT_GATE_MAPPING,
)

def __repr__(self):
def __repr__(self) -> str:
return f"QIBackend(name={self.name}, id={self.id})"

def __repr_pretty__(self, p: PrettyPrinter):
return p.text(f"QIBackend(name={self.name}, id={self.id})")
def __repr_pretty__(self, p: PrettyPrinter) -> None:
p.pprint(f"QIBackend(name={self.name}, id={self.id})")

@classmethod
def _default_options(cls) -> Options:
Expand Down

0 comments on commit d78c3dc

Please sign in to comment.