Type hints for Window class variables

This commit is contained in:
Grant Sanderson 2022-12-26 09:40:11 -07:00
parent 3bf5ce5776
commit 2b67aa0e01

View file

@ -16,17 +16,16 @@ if TYPE_CHECKING:
class Window(PygletWindow): class Window(PygletWindow):
fullscreen = False fullscreen: bool = False
resizable = True resizable: bool = True
gl_version = (3, 3) gl_version: tuple[int, int] = (3, 3)
vsync = True vsync: bool = True
cursor = True cursor: bool = True
def __init__( def __init__(
self, self,
scene: Scene, scene: Scene,
size: tuple[int, int] = (1280, 720), size: tuple[int, int] = (1280, 720),
**kwargs
): ):
super().__init__(size=size) super().__init__(size=size)