Skip to content

Commit

Permalink
fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
Coull committed Oct 7, 2024
1 parent 89984d8 commit 8dec2ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/braket/devices/local_simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 8dec2ce

Please sign in to comment.