Skip to content

Commit 8f02fcf

Browse files
committed
fix: run ruff format on __init__.py to satisfy ruff-and-mypy CI (f78879d introduced formatting drift from namespace/validation edits)
1 parent f78879d commit 8f02fcf

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

python/qector_decoder_v3/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,7 @@ def _validate_check_to_qubits(check_to_qubits, n_qubits=None, *, reject_hyperedg
111111
seen = set()
112112
for q in check:
113113
if not isinstance(q, (int, bool, _np.integer, getattr(_np, "bool_", bool))):
114-
raise TypeError(
115-
f"Qubit index must be integer, got {type(q).__name__} in check {i}"
116-
)
114+
raise TypeError(f"Qubit index must be integer, got {type(q).__name__} in check {i}")
117115
qi = int(q)
118116
if qi < 0:
119117
raise ValueError(f"Negative qubit index {qi} in check {i}")
@@ -485,6 +483,7 @@ class OpenCLBatchDecoder:
485483

486484
def __init__(self, check_to_qubits, n_qubits=None):
487485
import os as _os_local
486+
488487
if _os_local.environ.get("QECTOR_OPENCL_PROBE_CHILD") != "1" and not _opencl_health_check():
489488
raise RuntimeError(
490489
"OpenCL backend is unavailable or failed its health check; "

0 commit comments

Comments
 (0)