Skip to content

Commit 7cc910c

Browse files
committed
fix type hints
1 parent ffac295 commit 7cc910c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

paddlex/inference/common/result/mixin.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,11 @@ def __init__(self) -> None:
125125
self._json_writer = JsonWriter()
126126
self._save_funcs.append(self.save_to_json)
127127

128-
def _to_json(self) -> dict:
128+
def _to_json(self) -> Dict[str, Any]:
129129
"""Convert the object to a JSON-serializable format.
130130
131131
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.
133133
"""
134134

135135
def _format_data(obj):
@@ -163,7 +163,7 @@ def json(self) -> Dict[str, Any]:
163163
"""Property to get the JSON representation of the result.
164164
165165
Returns:
166-
dict: The dict type JSON representation of the result.
166+
Dict[str, Any]: The dict type JSON representation of the result.
167167
"""
168168

169169
return self._to_json()

0 commit comments

Comments
 (0)