Fix JsonFile
This commit is contained in:
parent
2c54f8e306
commit
4fdbbc3c04
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue