Skip to content

Commit eac763e

Browse files
Revert "Fix type hints for RendererGL.gl"
This reverts commit 82224a2.
1 parent 0ac5658 commit eac763e

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

newton/_src/viewer/gl/opengl.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
import io
1818
import os
1919
import sys
20-
from types import ModuleType
21-
from typing import TYPE_CHECKING, ClassVar
2220

2321
import numpy as np
2422
import warp as wp
@@ -33,10 +31,6 @@
3331
ShadowShader,
3432
)
3533

36-
if TYPE_CHECKING:
37-
from pyglet import gl
38-
39-
4034
ENABLE_CUDA_INTEROP = True
4135
ENABLE_GL_CHECKS = False
4236

@@ -777,8 +771,7 @@ def render(self):
777771

778772

779773
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
782775

783776
@classmethod
784777
def initialize_gl(cls):

0 commit comments

Comments
 (0)