Skip to content

Commit

Permalink
type hints for mouse position (issue pythonarcade#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
filiplajszczak committed Feb 26, 2020
1 parent 74ee883 commit 5b07662
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/game_window.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
"""
Main Game Engine
"""
from typing import Optional, Tuple

import arcade
import json
import pyglet.gl as gl
Expand Down Expand Up @@ -36,7 +38,7 @@ def __init__(self, width: int, height: int, title: str):
self.time_since_last_move_check = 0

self.mouse_over_text = None
self.mouse_position = None
self.mouse_position: Optional[Tuple[float, float]] = None

arcade.set_background_color(arcade.color.BLACK)

Expand Down

0 comments on commit 5b07662

Please sign in to comment.