From a88706142f7322c85a8b63163e0e16c46113475e Mon Sep 17 00:00:00 2001 From: Gouvernathor <44340603+Gouvernathor@users.noreply.github.com> Date: Fri, 17 Nov 2023 04:37:45 +0100 Subject: [PATCH] Don't use mutables in signatures --- game/scripts/interface/book.rpy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/game/scripts/interface/book.rpy b/game/scripts/interface/book.rpy index 3954267d..76cf18a5 100644 --- a/game/scripts/interface/book.rpy +++ b/game/scripts/interface/book.rpy @@ -1,12 +1,12 @@ init python: class book_readable_class(object): - def __init__(self, title, contents=[], **kwargs): + def __init__(self, title, contents=(), **kwargs): self.title = title self.page = 0 self.overflow=None self.title = title - self.contents = contents + self.contents = list(contents) self.__dict__.update(**kwargs) self.pages = len(self.contents)-1