diff --git a/src/braket/aws/aws_quantum_task.py b/src/braket/aws/aws_quantum_task.py index 95af7ad46..e60f37303 100644 --- a/src/braket/aws/aws_quantum_task.py +++ b/src/braket/aws/aws_quantum_task.py @@ -582,7 +582,7 @@ def _( aws_session: AwsSession, create_task_kwargs: dict[str, Any], device_arn: str, - device_parameters: dict | BraketSchemaBase, + device_parameters: Union[dict, BraketSchemaBase], # noqa: UP007 _disable_qubit_rewiring: bool, inputs: dict[str, float], gate_definitions: dict[tuple[Gate, QubitSet], PulseSequence], @@ -619,7 +619,7 @@ def _( aws_session: AwsSession, create_task_kwargs: dict[str, Any], device_arn: str, - device_parameters: dict | BraketSchemaBase, + device_parameters: Union[dict, BraketSchemaBase], # noqa: UP007 _disable_qubit_rewiring: bool, inputs: dict[str, float], gate_definitions: Optional[dict[tuple[Gate, QubitSet], PulseSequence]], # noqa: UP007 @@ -647,7 +647,7 @@ def _( aws_session: AwsSession, create_task_kwargs: dict[str, any], device_arn: str, - _device_parameters: dict | BraketSchemaBase, + _device_parameters: Union[dict, BraketSchemaBase], # noqa: UP007 _disable_qubit_rewiring: bool, inputs: dict[str, float], gate_definitions: dict[tuple[Gate, QubitSet], PulseSequence],