Skip to content

Commit

Permalink
Cast round_down return type to int
Browse files Browse the repository at this point in the history
  • Loading branch information
Bihan Rana authored and Bihan Rana committed Mar 13, 2024
1 parent 1b2073f commit 33737ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gpuhunt/providers/cudo.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def round_up(value: Optional[Union[int, float]], step: int) -> Optional[int]:
def round_down(value: Optional[Union[int, float]], step: int) -> Optional[int]:
if value is None:
return None
return value // step * step
return int(value // step * step)


T = TypeVar("T", bound=Union[int, float])
Expand Down

0 comments on commit 33737ef

Please sign in to comment.