Skip to content

Commit eba0f95

Browse files
committed
Make pyright pass despite pyglet import tricks
1 parent 0ad4663 commit eba0f95

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

arcade/application.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def __init__(
150150
update_rate: float = 1 / 60,
151151
antialiasing: bool = True,
152152
gl_version: tuple[int, int] = (3, 3),
153-
screen: pyglet.display.Screen | None = None,
153+
screen: Screen | None = None,
154154
style: str | None = pyglet.window.Window.WINDOW_STYLE_DEFAULT,
155155
visible: bool = True,
156156
vsync: bool = False,

arcade/window_commands.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def get_display_size(screen_id: int = 0) -> tuple[int, int]:
4747
Returns:
4848
Tuple containing the width and height of the screen
4949
"""
50-
display = pyglet.display.Display()
50+
display = pyglet.display.Display() # type: ignore # pending: pyglet fixes import tricks
5151
screen = display.get_screens()[screen_id]
5252
return screen.width, screen.height
5353

0 commit comments

Comments
 (0)