diff --git a/pyproject.toml b/pyproject.toml index d5d988f4..93aeb6d0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,7 +26,7 @@ classifiers = [ ] dependencies = [ "attrs >=20.1.0", # on_setattr and https://www.attrs.org/en/stable/api.html#next-gen - "qrules @ git+https://github.com/ComPWA/qrules@47e0c29", + "qrules @ git+https://github.com/ComPWA/qrules@e32e78c", "sympy >=1.10", "xxhash>=3.5.0", ] diff --git a/src/ampform/helicity/naming.py b/src/ampform/helicity/naming.py index 9cdaff65..59acb525 100644 --- a/src/ampform/helicity/naming.py +++ b/src/ampform/helicity/naming.py @@ -27,6 +27,7 @@ from typing_extensions import override if TYPE_CHECKING: from collections.abc import Iterable + from fractions import Fraction from qrules.topology import Topology @@ -503,7 +504,7 @@ def _state_to_str( return output_string -def _render_float(value: float) -> str: +def _render_float(value: float | Fraction) -> str: """Render a `float` nicely as a string. >>> _render_float(-0.5) diff --git a/uv.lock b/uv.lock index dfed9b63..f5a9fb25 100644 --- a/uv.lock +++ b/uv.lock @@ -193,7 +193,7 @@ types = [ requires-dist = [ { name = "attrs", specifier = ">=20.1.0" }, { name = "graphviz", marker = "extra == 'viz'" }, - { name = "qrules", git = "https://github.com/ComPWA/qrules?rev=47e0c29" }, + { name = "qrules", git = "https://github.com/ComPWA/qrules?rev=e32e78c" }, { name = "scipy", marker = "extra == 'scipy'" }, { name = "sympy", specifier = ">=1.10" }, { name = "xxhash", specifier = ">=3.5.0" }, @@ -3089,7 +3089,7 @@ wheels = [ [[package]] name = "qrules" version = "0.10.2" -source = { git = "https://github.com/ComPWA/qrules?rev=47e0c29#47e0c29bc4d89b0215e8d730fe9e4858067d1e88" } +source = { git = "https://github.com/ComPWA/qrules?rev=e32e78c#e32e78ca7f113efe908bd76cf1dc43c5ca6a7b3e" } dependencies = [ { name = "attrs" }, { name = "frozendict" },