Skip to content

Commit 8a4e7b4

Browse files
committed
stop trying to explain json decoded format: in stubs for json.loads it's Any
1 parent 994e1ad commit 8a4e7b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

exec_helpers/exec_result.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -585,15 +585,15 @@ def started(self) -> typing.Optional[datetime.datetime]:
585585
@_handle_deserialize("json")
586586
def stdout_json(
587587
self,
588-
) -> typing.Union[typing.Dict[str, typing.Any], typing.List[typing.Any], str, int, float, bool, None]:
588+
) -> typing.Any:
589589
"""JSON from stdout.
590590
591591
:return: decoded JSON document
592592
:rtype: typing.Any
593593
:raises DeserializeValueError: STDOUT can not be deserialized as JSON
594594
"""
595595
with self.stdout_lock:
596-
return json.loads(self.stdout_str) # type:ignore
596+
return json.loads(self.stdout_str)
597597

598598
if yaml is not None or ruamel_yaml is not None:
599599

0 commit comments

Comments
 (0)