From 33737efb39053ea89bd21bbac0a176997ef78177 Mon Sep 17 00:00:00 2001 From: Bihan Rana Date: Wed, 13 Mar 2024 22:12:18 +0545 Subject: [PATCH] Cast round_down return type to int --- src/gpuhunt/providers/cudo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gpuhunt/providers/cudo.py b/src/gpuhunt/providers/cudo.py index 196ccbe..1d099fa 100644 --- a/src/gpuhunt/providers/cudo.py +++ b/src/gpuhunt/providers/cudo.py @@ -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])