Stop using mutable default values for parameters

This commit is contained in:
Gouvernathor 2024-04-05 23:21:20 +02:00
parent 314f971609
commit 0d8e91b5a5

View File

@ -158,7 +158,7 @@ init 5 python:
self.pose = pose
self.update()
def place(self, pos=None, speed=1.0, pause=False, at_list=[], pose=None, xzoom=None):
def place(self, pos=None, speed=1.0, pause=False, at_list=(), pose=None, xzoom=None):
self.set_pose(pose or self.idle)
self.atl_time = 0
@ -190,7 +190,7 @@ init 5 python:
return
def move(self, path, speed=1.0, pause=True, loop=False, warper="linear", at_list=[], pose=None, repeat=None, wrap=True, reverse=True):
def move(self, path, speed=1.0, pause=True, loop=False, warper="linear", at_list=(), pose=None, repeat=None, wrap=True, reverse=True):
"""Makes chibi move"""
self.atl_looping = loop