Skip to content

Commit 8923143

Browse files
committed
Fix pyright compat issue due to name reassign
1 parent faa2eed commit 8923143

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

arcade/sprite/base.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ def __init__(
7070
self._depth = 0.0
7171
self._texture = texture
7272

73-
scale = Vec2(scale, scale) # Will be used below
74-
self._scale: Vec2 = scale
75-
self._size: Vec2 = scale * texture.size
73+
scale_vec2 = Vec2(scale, scale) # Will be used below
74+
self._scale: Vec2 = scale_vec2
75+
self._size: Vec2 = scale_vec2 * texture.size
7676

7777
self._visible = bool(visible)
7878
self._color: Color = WHITE
@@ -82,7 +82,7 @@ def __init__(
8282
# Core properties we don't use, but spritelist expects it
8383
self._angle = 0.0
8484

85-
self._hit_box = HitBox(self._texture.hit_box_points, position, scale)
85+
self._hit_box = HitBox(self._texture.hit_box_points, position, scale_vec2)
8686

8787
# --- Core Properties ---
8888

0 commit comments

Comments
 (0)