Skip to content

Commit

Permalink
Finish type annotation
Browse files Browse the repository at this point in the history
Co-authored-by: Nicola Soranzo <nicola.soranzo@gmail.com>
  • Loading branch information
bernt-matthias and nsoranzo committed Feb 19, 2024
1 parent 22f5073 commit 16b8eb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/galaxy/util/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 16b8eb5

Please sign in to comment.