Skip to content

Commit

Permalink
Improve primitives.containers.PubResult __repr__ (#11722)
Browse files Browse the repository at this point in the history
This is a cosmetic improvement.
  • Loading branch information
ihincks committed Feb 6, 2024
1 parent edbb398 commit 2f95629
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qiskit/primitives/containers/pub_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def __init__(self, data: DataBin, metadata: dict | None = None):

def __repr__(self):
metadata = f", metadata={self.metadata}" if self.metadata else ""
return f"{type(self).__name__}({self._data}{metadata})"
return f"{type(self).__name__}(data={self._data}{metadata})"

@property
def data(self) -> DataBin:
Expand Down

0 comments on commit 2f95629

Please sign in to comment.