diff --git a/pylasu/astruntime.py b/pylasu/astruntime.py index 909882e..f7d4f49 100644 --- a/pylasu/astruntime.py +++ b/pylasu/astruntime.py @@ -6,10 +6,9 @@ def unserialize_result(json_result, root_unserializer) -> Result: - return Result( - root=root_unserializer(json_result['root']) if 'root' in json_result else None, - issues=[unserialize_issue(issue) for issue in json_result['issues']] if 'issues' in json_result else [] - ) + result = Result(root=root_unserializer(json_result['root']) if 'root' in json_result else None) + result.issues = [unserialize_issue(issue) for issue in json_result['issues']] if 'issues' in json_result else [] + return result def unserialize_issue(json_issue) -> Issue: