From 2b67aa0e0160a4631cdcf89a5e10e75f87c5cfac Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Mon, 26 Dec 2022 09:40:11 -0700 Subject: [PATCH] Type hints for Window class variables --- manimlib/window.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/manimlib/window.py b/manimlib/window.py index 03c67041..97cf1974 100644 --- a/manimlib/window.py +++ b/manimlib/window.py @@ -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)