Skip to content

Commit baf593a

Browse files
committed
format and type fix
1 parent 6c791a0 commit baf593a

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/sindri/sindri.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,9 +408,11 @@ def create_circuit(
408408
tar.add(circuit_upload_path, arcname=file_name)
409409
files = {"files": fh.getvalue()} # type: ignore
410410

411-
data = {"tags": tags}
411+
data = {
412+
"tags": tags,
413+
}
412414
if meta is not None:
413-
data["meta"] = json.dumps(meta)
415+
data["meta"] = json.dumps(meta) # type: ignore
414416
# Hit circuit/create API endpoint
415417
response_status_code, response_json = self._hit_api(
416418
"POST",

tests/test_sindri.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ def test_circuit_create_prove_other(self):
7373
1. Test delete proof
7474
1. Test delete circuit
7575
"""
76-
circuit_id = sindri.create_circuit(noir_circuit_dir, tags=["latest", "pytest"], meta={"py-sdk": "pytest"})
76+
circuit_id = sindri.create_circuit(
77+
noir_circuit_dir, tags=["latest", "pytest"], meta={"py-sdk": "pytest"}
78+
)
7779
proof_id = sindri.prove_circuit(circuit_id, noir_proof_input, meta={"py-sdk": "pytest"})
7880
sindri.get_all_circuit_proofs(circuit_id)
7981
sindri.get_circuit(circuit_id)

0 commit comments

Comments
 (0)