Fix JsonFile

This commit is contained in:
Joscha 2026-01-21 16:40:43 +01:00
parent 2c54f8e306
commit 4fdbbc3c04

View file

@ -42,8 +42,8 @@ class JsonFileProxy:
class JsonFile(File): class JsonFile(File):
def __init__(self, data: Any = {}) -> None: def __init__(self, data: Any = None) -> None:
self.data = data self.data = {} if data is None else data
def at(self, *path: str) -> JsonFileProxy: def at(self, *path: str) -> JsonFileProxy:
return JsonFileProxy(self, path) return JsonFileProxy(self, path)