From e42fc6529a265a7c93134f583323163ae1d4a344 Mon Sep 17 00:00:00 2001 From: Passant Date: Wed, 11 Oct 2023 16:27:01 +0300 Subject: [PATCH] ~ fix linting error --- openlane/steps/openroad.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openlane/steps/openroad.py b/openlane/steps/openroad.py index b5f23a481..b648046a8 100644 --- a/openlane/steps/openroad.py +++ b/openlane/steps/openroad.py @@ -514,7 +514,7 @@ def format_count(count: Optional[Union[int, float, Decimal]]) -> str: def format_slack(slack: Optional[Union[int, float, Decimal]]) -> str: if slack is None: return "[gray]?" - slack = round(slack, 4) + slack = round(float(slack), 4) if slack <= 0: return f"[red]{slack}" else: