Skip to content

Commit

Permalink
Replace with list and dict
Browse files Browse the repository at this point in the history
  • Loading branch information
Randl committed Oct 4, 2022
1 parent bcd674a commit 67d209a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions qiskit/primitives/estimator_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from __future__ import annotations

from dataclasses import dataclass
from typing import TYPE_CHECKING, Any, Dict, List
from typing import TYPE_CHECKING, Any

from .base_result import BasePrimitiveResult

Expand All @@ -43,4 +43,4 @@ class EstimatorResult(BasePrimitiveResult):
"""

values: "np.ndarray[Any, np.dtype[np.float64]]"
metadata: List[Dict[str, Any]]
metadata: list[dict[str, Any]]
6 changes: 3 additions & 3 deletions qiskit/primitives/sampler_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from __future__ import annotations

from dataclasses import dataclass
from typing import Any, List, Dict
from typing import Any

from qiskit.result import QuasiDistribution

Expand All @@ -41,5 +41,5 @@ class SamplerResult(BasePrimitiveResult):
metadata (list[dict]): List of the metadata.
"""

quasi_dists: List[QuasiDistribution]
metadata: List[Dict[str, Any]]
quasi_dists: list[QuasiDistribution]
metadata: list[dict[str, Any]]

0 comments on commit 67d209a

Please sign in to comment.