From 29a9524dc78156feadce780d04e0a98d326405da Mon Sep 17 00:00:00 2001 From: Jihoon Oh Date: Thu, 29 Aug 2024 23:07:21 +0900 Subject: [PATCH] fix builtins module (#276) --- src/viser/_gui_api.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/viser/_gui_api.py b/src/viser/_gui_api.py index dbe994c72..ebe01e032 100644 --- a/src/viser/_gui_api.py +++ b/src/viser/_gui_api.py @@ -1,5 +1,6 @@ from __future__ import annotations +import builtins import colorsys import dataclasses import functools @@ -1242,7 +1243,7 @@ def add_slider( """ value: IntOrFloat = initial_value assert max >= min - step = __builtins__.min(step, max - min) + step = builtins.min(step, max - min) assert max >= value >= min # GUI callbacks cast incoming values to match the type of the initial value. If @@ -1325,7 +1326,7 @@ def add_multi_slider( A handle that can be used to interact with the GUI element. """ assert max >= min - step = __builtins__.min(step, max - min) + step = builtins.min(step, max - min) assert all(max >= x >= min for x in initial_value) # GUI callbacks cast incoming values to match the type of the initial value. If