Skip to content

Commit 83fd2e1

Browse files
committed
Fix the type signature of get_closest_sprite.
This is similar to the fix done to `check_for_collision_with_list` done in c387717.
1 parent 447e0fa commit 83fd2e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arcade/sprite_list/collision.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def get_distance_between_sprites(sprite1: SpriteType, sprite2: SpriteType) -> fl
3232

3333

3434
def get_closest_sprite(
35-
sprite: SpriteType, sprite_list: SpriteList
35+
sprite: BasicSprite, sprite_list: SpriteList[SpriteType]
3636
) -> Tuple[SpriteType, float] | None:
3737
"""
3838
Given a Sprite and SpriteList, returns the closest sprite, and its distance.

0 commit comments

Comments
 (0)