Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: onboard to use ruff #1029

Open
wants to merge 35 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
e45bd6b
infra: onboard to use ruff
Aug 28, 2024
531d724
Merge branch 'main' into ruff_test
AbeCoull Sep 3, 2024
f886b18
remove unused inputs
Sep 3, 2024
c45edd5
up007 ignore
Sep 3, 2024
8b3e5a7
Merge branch 'main' into ruff_test
AbeCoull Sep 4, 2024
d53188b
up007 ignore
Sep 4, 2024
5be9e80
fix typing issue
Sep 6, 2024
2a64ad4
fix
Sep 6, 2024
7e17365
fix dict typing
Sep 6, 2024
1c04013
fix
Sep 6, 2024
8ecf2d2
fix
Sep 6, 2024
376aba0
last one
Sep 6, 2024
f35947e
fix
Sep 6, 2024
a888b09
fix
Sep 6, 2024
83b3e20
typing issue
Sep 6, 2024
f3bef23
Merge branch 'main' into ruff_test
AbeCoull Sep 6, 2024
d3ab6e8
coverage fix
Sep 6, 2024
65cfa9d
ignore the list conversion for ascii diagrams
Sep 6, 2024
e4e0c9f
ignore the list conversion for ascii diagrams
Sep 6, 2024
913c0aa
add optional
Sep 10, 2024
324df53
enable more pydoclint
Oct 7, 2024
8e25245
Merge branch 'main' into ruff_test
AbeCoull Oct 7, 2024
89984d8
fix import from main
Oct 7, 2024
8dec2ce
fix typing
Oct 7, 2024
93d286d
Merge branch 'main' into ruff_test
AbeCoull Oct 16, 2024
ad56d22
Merge branch 'main' into ruff_test
AbeCoull Oct 18, 2024
6dea3bd
rebase main
Oct 18, 2024
911cdc9
correct datetime import
Oct 23, 2024
49bb44c
Merge branch 'main' into ruff_test
AbeCoull Oct 23, 2024
20aaeca
Merge branch 'main' into ruff_test
AbeCoull Nov 26, 2024
aaed73e
update files
Nov 25, 2024
b5c62fb
update for ruf039 and ann101, ann102
Nov 26, 2024
da699bf
Merge branch 'main' into ruff_test
AbeCoull Dec 17, 2024
6b1b9c3
rebase in main and update for new rules
Dec 17, 2024
27da2f3
Merge branch 'main' into ruff_test
AbeCoull Jan 22, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix import from main
  • Loading branch information
Coull committed Oct 7, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 89984d8ed6c6d0e8e6ce4f90ab1b712188b3aac7
2 changes: 1 addition & 1 deletion src/braket/devices/local_simulator.py
Original file line number Diff line number Diff line change
@@ -286,7 +286,7 @@ def _(self, program: OpenQASMProgram, inputs: Optional[dict[str, float]], _shots
return program

@_construct_payload.register
def _(self, program: SerializableProgram, inputs: Optional[dict[str, float]], _shots):
def _(self, program: SerializableProgram, inputs: dict[str, float] | None, _shots: int):
inputs_copy = inputs.copy() if inputs is not None else {}
return OpenQASMProgram(source=program.to_ir(ir_type=IRType.OPENQASM), inputs=inputs_copy)

Loading