From 4fdbbc3c04decfdc40c04b5e475db0db043d4192 Mon Sep 17 00:00:00 2001 From: Joscha Date: Wed, 21 Jan 2026 16:40:43 +0100 Subject: [PATCH] Fix JsonFile --- pasch/file/json.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pasch/file/json.py b/pasch/file/json.py index 44ec677..d348da8 100644 --- a/pasch/file/json.py +++ b/pasch/file/json.py @@ -42,8 +42,8 @@ class JsonFileProxy: class JsonFile(File): - def __init__(self, data: Any = {}) -> None: - self.data = data + def __init__(self, data: Any = None) -> None: + self.data = {} if data is None else data def at(self, *path: str) -> JsonFileProxy: return JsonFileProxy(self, path)