From 65e867109ccf0ee0e0bc7e4666692fc11f8cc55d Mon Sep 17 00:00:00 2001 From: Steven Franklin Date: Wed, 16 Oct 2024 15:43:09 -0500 Subject: [PATCH] precommit --- src/mercury_engine_data_structures/_dread_data_construct.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mercury_engine_data_structures/_dread_data_construct.py b/src/mercury_engine_data_structures/_dread_data_construct.py index 3440bec..cd85997 100644 --- a/src/mercury_engine_data_structures/_dread_data_construct.py +++ b/src/mercury_engine_data_structures/_dread_data_construct.py @@ -77,7 +77,7 @@ def _parse(self, stream, context, path) -> dict[str, int]: def _build(self, obj: dict[str, dict], stream, context, path): ver_to_val = context.versions - all_vers = sum([v for v in ver_to_val.values()]) + all_vers = sum(ver_to_val.values()) for a in obj.values(): vers = a.get("versions") if vers is not None: @@ -86,7 +86,7 @@ def _build(self, obj: dict[str, dict], stream, context, path): a["versions"] = all_vers return self._build_construct._build( - list([(k, v["crc"], v["versions"]) for k, v in obj.items()]), stream, context, path + [(k, v["crc"], v["versions"]) for k, v in obj.items()], stream, context, path )