1010import ctypes
1111from pathlib import Path
1212from contextlib import contextmanager
13- from typing import List , Optional , Union
13+ from typing import List , Optional , Union , Tuple
1414
1515from .plugins .registry import get_plugin_registry
1616from .plugins import helios_lib
@@ -573,7 +573,7 @@ def setCameraFieldOfView(self, angle_FOV: float) -> None:
573573 except Exception as e :
574574 raise VisualizerError (f"Failed to set camera field of view: { e } " )
575575
576- def getCameraPosition (self ) -> tuple [vec3 , vec3 ]:
576+ def getCameraPosition (self ) -> Tuple [vec3 , vec3 ]:
577577 """
578578 Get current camera position and look-at point.
579579
@@ -649,7 +649,7 @@ def setLightIntensityFactor(self, intensity_factor: float) -> None:
649649
650650 # Window and Display Methods
651651
652- def getWindowSize (self ) -> tuple [int , int ]:
652+ def getWindowSize (self ) -> Tuple [int , int ]:
653653 """
654654 Get window size in pixels.
655655
@@ -672,7 +672,7 @@ def getWindowSize(self) -> tuple[int, int]:
672672 except Exception as e :
673673 raise VisualizerError (f"Failed to get window size: { e } " )
674674
675- def getFramebufferSize (self ) -> tuple [int , int ]:
675+ def getFramebufferSize (self ) -> Tuple [int , int ]:
676676 """
677677 Get framebuffer size in pixels.
678678
@@ -796,7 +796,7 @@ def getWindowPixelsRGB(self, buffer: List[int]) -> None:
796796 except Exception as e :
797797 raise VisualizerError (f"Failed to get window pixels: { e } " )
798798
799- def getDepthMap (self ) -> tuple [List [float ], int , int ]:
799+ def getDepthMap (self ) -> Tuple [List [float ], int , int ]:
800800 """
801801 Get depth map from current window.
802802
0 commit comments