From 8dec2ce70c24ffaff4ec30bf7fac9c23195ae4ce Mon Sep 17 00:00:00 2001 From: Coull Date: Mon, 7 Oct 2024 14:44:41 -0700 Subject: [PATCH] fix typing --- src/braket/devices/local_simulator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/braket/devices/local_simulator.py b/src/braket/devices/local_simulator.py index 5c087cd79..b7b3efbc4 100644 --- a/src/braket/devices/local_simulator.py +++ b/src/braket/devices/local_simulator.py @@ -286,7 +286,7 @@ def _(self, program: OpenQASMProgram, inputs: Optional[dict[str, float]], _shots return program @_construct_payload.register - def _(self, program: SerializableProgram, inputs: dict[str, float] | None, _shots: int): + def _(self, program: SerializableProgram, inputs: Optional[dict[str, float]], _shots: int): # noqa: UP007 inputs_copy = inputs.copy() if inputs is not None else {} return OpenQASMProgram(source=program.to_ir(ir_type=IRType.OPENQASM), inputs=inputs_copy)