@@ -173,7 +173,7 @@ def delete(self, key: str, path: Optional[str] = Path.root_path()) -> int:
173
173
174
174
def get (
175
175
self , name : str , * args , no_escape : Optional [bool ] = False
176
- ) -> List [JsonType ]:
176
+ ) -> Optional [ List [JsonType ] ]:
177
177
"""
178
178
Get the object stored as a JSON value at key ``name``.
179
179
@@ -324,7 +324,7 @@ def set_path(
324
324
nx : Optional [bool ] = False ,
325
325
xx : Optional [bool ] = False ,
326
326
decode_keys : Optional [bool ] = False ,
327
- ) -> List [ Dict [str , bool ] ]:
327
+ ) -> Dict [str , bool ]:
328
328
"""
329
329
Iterate over ``root_folder`` and set each JSON file to a value
330
330
under ``json_path`` with the file name as the key.
@@ -377,7 +377,7 @@ def toggle(
377
377
return self .execute_command ("JSON.TOGGLE" , name , str (path ))
378
378
379
379
def strappend (
380
- self , name : str , value : str , path : Optional [int ] = Path .root_path ()
380
+ self , name : str , value : str , path : Optional [str ] = Path .root_path ()
381
381
) -> Union [int , List [Optional [int ]]]:
382
382
"""Append to the string JSON value. If two options are specified after
383
383
the key name, the path is determined to be the first. If a single
0 commit comments