Skip to content

Commit 9a993dd

Browse files
authored
Bump pyglet to 2.1.dev6 (#2385)
* Bump pyglet to 2.1.dev6 * Make pyright pass despite pyglet import tricks
1 parent 43190db commit 9a993dd

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

arcade/application.py

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ dependencies = [
2323
# at the cost of slow download and constant pip install -I -e .[dev]
2424
# "pyglet@git+https://github.com/pyglet/pyglet.git@development#egg=pyglet",
2525
# Expected future dev preview release on PyPI (not yet released)
26-
'pyglet==2.1.dev5',
26+
'pyglet==2.1.dev6',
2727
"pillow~=10.4.0",
2828
"pymunk~=6.8.1",
2929
"pytiled-parser~=2.2.5",

0 commit comments

Comments
 (0)