Skip to content

Commit 4c1ef70

Browse files
authored
Move window.Headless annotation out of comment (pythonarcade#2102)
* Make the change in the normal window * Mirror the change in the clock_window.py
1 parent ebca57d commit 4c1ef70

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

arcade/application.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ def __init__(
130130
gl_version = 3, 1
131131
gl_api = "gles"
132132

133-
#: bool: If this is a headless window
134-
self.headless = pyglet.options.get("headless") is True
133+
#: Whether this is a headless window
134+
self.headless: bool = pyglet.options.get("headless") is True
135135

136136
config = None
137137
# Attempt to make window with antialiasing

arcade/experimental/clock/clock_window.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ def __init__(
120120
gl_version = 3, 1
121121
gl_api = "gles"
122122

123-
#: bool: If this is a headless window
124-
self.headless = pyglet.options.get("headless") is True
123+
#: Whether this is a headless window
124+
self.headless: bool = pyglet.options.get("headless") is True
125125

126126
config = None
127127
# Attempt to make window with antialiasing

0 commit comments

Comments
 (0)