diff --git a/arcade/application.py b/arcade/application.py index 41cabdfc6..ae549f7de 100644 --- a/arcade/application.py +++ b/arcade/application.py @@ -150,7 +150,7 @@ def __init__( update_rate: float = 1 / 60, antialiasing: bool = True, gl_version: tuple[int, int] = (3, 3), - screen: pyglet.display.Screen | None = None, + screen: Screen | None = None, style: str | None = pyglet.window.Window.WINDOW_STYLE_DEFAULT, visible: bool = True, vsync: bool = False, diff --git a/arcade/window_commands.py b/arcade/window_commands.py index 5ba48f8a0..c8ec5a1b1 100644 --- a/arcade/window_commands.py +++ b/arcade/window_commands.py @@ -47,7 +47,7 @@ def get_display_size(screen_id: int = 0) -> tuple[int, int]: Returns: Tuple containing the width and height of the screen """ - display = pyglet.display.Display() + display = pyglet.display.Display() # type: ignore # pending: pyglet fixes import tricks screen = display.get_screens()[screen_id] return screen.width, screen.height diff --git a/pyproject.toml b/pyproject.toml index 5ca65570d..e8e39fc6a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,7 +23,7 @@ dependencies = [ # at the cost of slow download and constant pip install -I -e .[dev] # "pyglet@git+https://github.com/pyglet/pyglet.git@development#egg=pyglet", # Expected future dev preview release on PyPI (not yet released) - 'pyglet==2.1.dev5', + 'pyglet==2.1.dev6', "pillow~=10.4.0", "pymunk~=6.8.1", "pytiled-parser~=2.2.5",