2626from manim_slides .render import render
2727from manim_slides .slide .manim import Slide as CESlide
2828
29-
30- class CEGLSlide (CESlide ):
31- def __init__ (self , * args : Any , ** kwargs : Any ) -> None :
32- super ().__init__ (* args , renderer = OpenGLRenderer (), ** kwargs )
33-
34-
35- if sys .version_info >= (3 , 12 ):
29+ if sys .version_info < (3 , 10 ):
3630
3731 class _GLSlide :
38- pass
32+ def construct (self ) -> None :
33+ pass
34+
35+ def render (self ) -> None :
36+ pass
3937
40- GLSlide = pytest .param (_GLSlide , marks = pytest .mark .skip ())
38+ GLSlide = pytest .param (
39+ _GLSlide ,
40+ marks = pytest .mark .skip (reason = "See https://github.com/3b1b/manim/issues/2263" ),
41+ )
4142else :
4243 from manim_slides .slide .manimlib import Slide as GLSlide
4344
44- SlideType = Union [type [CESlide ], type [GLSlide ], type [CEGLSlide ]]
45- Slide = Union [CESlide , GLSlide , CEGLSlide ]
45+ _GLSlide = GLSlide
46+
47+
48+ class CEGLSlide (CESlide ):
49+ def __init__ (self , * args : Any , ** kwargs : Any ) -> None :
50+ super ().__init__ (* args , renderer = OpenGLRenderer (), ** kwargs )
51+
52+
53+ SlideType = Union [type [CESlide ], type [_GLSlide ], type [CEGLSlide ]]
54+ Slide = Union [CESlide , _GLSlide , CEGLSlide ]
4655
4756
4857@pytest .mark .parametrize (
@@ -52,8 +61,8 @@ class _GLSlide:
5261 pytest .param (
5362 "--GL" ,
5463 marks = pytest .mark .skipif (
55- sys .version_info >= (3 , 12 ),
56- reason = "ManimGL requires numpy<1.25, which is outdated and Python < 3.12 " ,
64+ sys .version_info < (3 , 10 ),
65+ reason = "See https://github.com/3b1b/manim/issues/2263. " ,
5766 ),
5867 ),
5968 ],
@@ -161,8 +170,8 @@ def test_clear_cache(
161170 pytest .param (
162171 "--GL" ,
163172 marks = pytest .mark .skipif (
164- sys .version_info >= (3 , 12 ),
165- reason = "ManimGL requires numpy<1.25, which is outdated and Python < 3.12 " ,
173+ sys .version_info < (3 , 10 ),
174+ reason = "See https://github.com/3b1b/manim/issues/2263. " ,
166175 ),
167176 ),
168177 ],
0 commit comments