Skip to content

Commit 6675d55

Browse files
committed
Fix type issue from Literal usage in pyglet via type: ignore
1 parent ba58b89 commit 6675d55

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

arcade/text.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,9 @@ def __init__(
213213
z=z,
214214
font_name=adjusted_font,
215215
font_size=font_size,
216-
anchor_x=anchor_x,
217-
anchor_y=anchor_y,
216+
# use type: ignore since cast is slow & pyglet used Literal
217+
anchor_x=anchor_x, # type: ignore
218+
anchor_y=anchor_y, # type: ignore
218219
color=Color.from_iterable(color),
219220
width=width,
220221
align=align,

0 commit comments

Comments
 (0)