From 16b8eb5c35dbbed932ac69ea5ba53702d4685557 Mon Sep 17 00:00:00 2001 From: M Bernt Date: Mon, 19 Feb 2024 18:56:29 +0100 Subject: [PATCH] Finish type annotation Co-authored-by: Nicola Soranzo --- lib/galaxy/util/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/galaxy/util/__init__.py b/lib/galaxy/util/__init__.py index c97423b795be..9df62139d205 100644 --- a/lib/galaxy/util/__init__.py +++ b/lib/galaxy/util/__init__.py @@ -1139,7 +1139,7 @@ def commaify(amount): return commaify(new) -def trailing_zeros_to_powerof10(amount: int): +def trailing_zeros_to_powerof10(amount: int) -> str: """ >>> trailing_zeros_to_powerof10(23000) '23000' @@ -1168,7 +1168,7 @@ def trailing_zeros_to_powerof10(amount: int): return f"{amount[: i+1]}\u00d710^{zeros}" -def roundify(amount: int, sfs: int = 2): +def roundify(amount: int, sfs: int = 2) -> int: """ Take a number and round it to 'sfs' significant figures.