Skip to content

Commit

Permalink
fix: Mypy tket2 error (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-koch authored May 17, 2024
1 parent bd7e67a commit 7ad3908
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guppylang/compiler/expr_compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ def python_value_to_hugr(v: Any, exp_ty: Type) -> ops.Value | None:
Tk2Circuit,
)

hugr = json.loads(Tk2Circuit(v).to_hugr_json())
hugr = json.loads(Tk2Circuit(v).to_hugr_json()) # type: ignore[attr-defined]
return ops.Value(ops.FunctionValue(hugr=hugr))
except ImportError:
pass
Expand Down

0 comments on commit 7ad3908

Please sign in to comment.