From d81356b656ace618f4112266595d63415ac35dee Mon Sep 17 00:00:00 2001 From: John van de Wetering Date: Tue, 16 Jul 2024 18:56:21 -0300 Subject: [PATCH] Added comment needed for #234 --- pyzx/graph/jsonparser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyzx/graph/jsonparser.py b/pyzx/graph/jsonparser.py index 00e58b78..6a03f816 100644 --- a/pyzx/graph/jsonparser.py +++ b/pyzx/graph/jsonparser.py @@ -55,7 +55,7 @@ def string_to_phase(string: str, g: Union[BaseGraph,'GraphDiff']) -> Union[Fract elif '/' in s: a, b = s.split("/", 2) if not a: - return Fraction(int(1), int(b)) + return Fraction(int(1), int(b)) # For some weird reason this int(1) is needed. See PR #234. if a == '-': a = '-1' return Fraction(int(a), int(b))