Skip to content

Commit 6ab821b

Browse files
authored
remove trailing whitespace and fix type of size function
1 parent ca8a0d0 commit 6ab821b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

arcade/text.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ def __init__(
277277
**kwargs,
278278
):
279279
self._initialized = False
280-
self.arguments = [text, x, y, color, font_size, width, align, font_name, bold,
280+
self.arguments = [text, x, y, color, font_size, width, align, font_name, bold,
281281
italic, anchor_x, anchor_y, multiline, rotation, batch, group, z]
282282
self.kwargs = kwargs
283283

@@ -642,7 +642,7 @@ def height(self, value: int) -> None:
642642
raise RuntimeError("Text must be initialized")
643643

644644
@property
645-
def size(self) -> tuple[int, int] | None:
645+
def size(self) -> tuple[int | None, int | None]:
646646
"""Get the size of the label."""
647647
if self._initialized:
648648
return self._label.width, self._label.height

0 commit comments

Comments
 (0)