From 70081e0d7475b149bb9044f07d17bfa2f2a4a4b3 Mon Sep 17 00:00:00 2001 From: awsr <43862868+awsr@users.noreply.github.com> Date: Sun, 28 Dec 2025 02:38:17 -0800 Subject: [PATCH] Fix default value --- modules/json_helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/json_helpers.py b/modules/json_helpers.py index 3c2facda0..5cb495437 100644 --- a/modules/json_helpers.py +++ b/modules/json_helpers.py @@ -19,7 +19,7 @@ def readfile(filename: str, silent: bool = False, lock: bool = False, *, as_type def readfile(filename: str, silent: bool = False, lock: bool = False) -> dict | list: ... def readfile(filename: str, silent: bool = False, lock: bool = False, *, as_type="") -> dict | list: global locking_available # pylint: disable=global-statement - data = {} + data = {} if as_type == "dict" else [] lock_file = None locked = False if lock and locking_available: