File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
paddlex/inference/common/result Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -125,11 +125,11 @@ def __init__(self) -> None:
125
125
self ._json_writer = JsonWriter ()
126
126
self ._save_funcs .append (self .save_to_json )
127
127
128
- def _to_json (self ) -> dict :
128
+ def _to_json (self ) -> Dict [ str , Any ] :
129
129
"""Convert the object to a JSON-serializable format.
130
130
131
131
Returns:
132
- dict : A dictionary representation of the object that is JSON-serializable.
132
+ Dict[str, Any] : A dictionary representation of the object that is JSON-serializable.
133
133
"""
134
134
135
135
def _format_data (obj ):
@@ -163,7 +163,7 @@ def json(self) -> Dict[str, Any]:
163
163
"""Property to get the JSON representation of the result.
164
164
165
165
Returns:
166
- dict : The dict type JSON representation of the result.
166
+ Dict[str, Any] : The dict type JSON representation of the result.
167
167
"""
168
168
169
169
return self ._to_json ()
You can’t perform that action at this time.
0 commit comments