Skip to content

Commit 246521b

Browse files
committed
Fix pyright compat issue due to name reassign
1 parent 7a4aec8 commit 246521b

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
@@ -64,9 +64,9 @@ def __init__(
6464
self._depth = 0.0
6565
self._texture = texture
6666

67-
scale = Vec2(scale, scale) # Will be used below
68-
self._scale: Vec2 = scale
69-
self._size: Vec2 = scale * texture.size
67+
scale_vec2 = Vec2(scale, scale) # Will be used below
68+
self._scale: Vec2 = scale_vec2
69+
self._size: Vec2 = scale_vec2 * texture.size
7070

7171
self._visible = bool(visible)
7272
self._color: Color = WHITE
@@ -75,7 +75,7 @@ def __init__(
7575
# Core properties we don't use, but spritelist expects it
7676
self._angle = 0.0
7777

78-
self._hit_box = HitBox(self._texture.hit_box_points, position, scale)
78+
self._hit_box = HitBox(self._texture.hit_box_points, position, scale_vec2)
7979

8080
# --- Core Properties ---
8181

0 commit comments

Comments
 (0)