From cc87b1183ae6dcc37b3b1eb318b7f74335106df2 Mon Sep 17 00:00:00 2001 From: Brent Yi Date: Thu, 3 Aug 2023 01:14:43 -0700 Subject: [PATCH] Fix pyright error --- viser/_gui_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/viser/_gui_api.py b/viser/_gui_api.py index 768b1ae3d..5182a36d4 100644 --- a/viser/_gui_api.py +++ b/viser/_gui_api.py @@ -339,7 +339,7 @@ def add_gui_vector2( id = _make_unique_id() if step is None: - possible_steps = [] + possible_steps: List[float] = [] possible_steps.extend([_compute_step(x) for x in initial_value]) if min is not None: possible_steps.extend([_compute_step(x) for x in min]) @@ -384,7 +384,7 @@ def add_gui_vector3( id = _make_unique_id() if step is None: - possible_steps = [] + possible_steps: List[float] = [] possible_steps.extend([_compute_step(x) for x in initial_value]) if min is not None: possible_steps.extend([_compute_step(x) for x in min])