Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Coull committed Sep 6, 2024
1 parent 7e17365 commit 1c04013
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/braket/aws/aws_quantum_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import time
from functools import singledispatch
from logging import Logger, getLogger
from typing import Any, ClassVar, Optional
from typing import Any, ClassVar, Optional, Union

import boto3

Expand Down Expand Up @@ -542,7 +542,7 @@ def _create_internal(
aws_session: AwsSession,
create_task_kwargs: dict[str, Any],
device_arn: str,
device_parameters: dict[str, str] | BraketSchemaBase,
device_parameters: Union[dict[str, str], BraketSchemaBase], # noqa: UP007
disable_qubit_rewiring: bool,
inputs: dict[str, float],
gate_definitions: dict[tuple[Gate, QubitSet], PulseSequence],
Expand All @@ -558,7 +558,8 @@ def _(
aws_session: AwsSession,
create_task_kwargs: dict[str, Any],
device_arn: str,
_device_parameters: dict[str, str] | BraketSchemaBase, # Not currently used for OpenQasmProgram
# Not currently used for OpenQasmProgram
_device_parameters: Union[dict[str, str], BraketSchemaBase], # noqa: UP007
_disable_qubit_rewiring: bool,
inputs: dict[str, float],
gate_definitions: dict[tuple[Gate, QubitSet], PulseSequence],
Expand Down

0 comments on commit 1c04013

Please sign in to comment.