Skip to content

Commit

Permalink
Bump pyglet to 2.1.dev6 (#2385)
Browse files Browse the repository at this point in the history
* Bump pyglet to 2.1.dev6

* Make pyright pass despite pyglet import tricks
  • Loading branch information
pushfoo authored Oct 4, 2024
1 parent 43190db commit 9a993dd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion arcade/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion arcade/window_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 9a993dd

Please sign in to comment.