We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ac5658 commit eac763eCopy full SHA for eac763e
newton/_src/viewer/gl/opengl.py
@@ -17,8 +17,6 @@
17
import io
18
import os
19
import sys
20
-from types import ModuleType
21
-from typing import TYPE_CHECKING, ClassVar
22
23
import numpy as np
24
import warp as wp
@@ -33,10 +31,6 @@
33
31
ShadowShader,
34
32
)
35
36
-if TYPE_CHECKING:
37
- from pyglet import gl
38
-
39
40
ENABLE_CUDA_INTEROP = True
41
ENABLE_GL_CHECKS = False
42
@@ -777,8 +771,7 @@ def render(self):
777
771
778
772
779
773
class RendererGL:
780
- # Class-level variable to hold the imported module
781
- gl: ClassVar["ModuleType | type[gl]"] = None # pyright: ignore[reportAssignmentType, reportInvalidTypeForm]
774
+ gl = None # Class-level variable to hold the imported module
782
775
783
776
@classmethod
784
def initialize_gl(cls):
0 commit comments