mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Type hints for Window class variables
This commit is contained in:
parent
3bf5ce5776
commit
2b67aa0e01
1 changed files with 5 additions and 6 deletions
|
@ -16,17 +16,16 @@ if TYPE_CHECKING:
|
|||
|
||||
|
||||
class Window(PygletWindow):
|
||||
fullscreen = False
|
||||
resizable = True
|
||||
gl_version = (3, 3)
|
||||
vsync = True
|
||||
cursor = True
|
||||
fullscreen: bool = False
|
||||
resizable: bool = True
|
||||
gl_version: tuple[int, int] = (3, 3)
|
||||
vsync: bool = True
|
||||
cursor: bool = True
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
scene: Scene,
|
||||
size: tuple[int, int] = (1280, 720),
|
||||
**kwargs
|
||||
):
|
||||
super().__init__(size=size)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue