Skip to content

Commit

Permalink
MAINT: update to QRules with Fractions
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Dec 20, 2024
1 parent b9fc23f commit 0004675
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/ampform/helicity/naming.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0004675

Please sign in to comment.