From cf430ad9fbfc9e0a6a97af46c88f24efbc261d1f Mon Sep 17 00:00:00 2001 From: Christine Draper Date: Thu, 23 May 2024 12:40:02 -0400 Subject: [PATCH] Lint fix --- whylabs_toolkit/monitor/diagnoser/converters/granularity.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/whylabs_toolkit/monitor/diagnoser/converters/granularity.py b/whylabs_toolkit/monitor/diagnoser/converters/granularity.py index 27bdd7c..a501d05 100644 --- a/whylabs_toolkit/monitor/diagnoser/converters/granularity.py +++ b/whylabs_toolkit/monitor/diagnoser/converters/granularity.py @@ -24,4 +24,5 @@ def calculate_num_batches(interval: str, granularity: str) -> int: else: raise ValueError(f"Unsupported granularity: {granularity}") - return floor(difference) + diff_as_int: int = floor(difference) + return diff_as_int