Skip to content

Commit

Permalink
Add type hints in utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mo1ein committed Aug 7, 2022
1 parent d8fd1bb commit 1bdc9ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
def round_down(x, precision):
def round_down(x: float, precision: int) -> :
return round(x - 5 * (10 ** (-precision - 1)), precision)

0 comments on commit 1bdc9ed

Please sign in to comment.