Skip to content

Commit

Permalink
precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
steven11sjf committed Oct 16, 2024
1 parent ec1d0df commit 65e8671
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mercury_engine_data_structures/_dread_data_construct.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -86,7 +86,7 @@ def _build(self, obj: dict[str, dict], stream, context, path):
a["versions"] = all_vers

Check warning on line 86 in src/mercury_engine_data_structures/_dread_data_construct.py

View check run for this annotation

Codecov / codecov/patch

src/mercury_engine_data_structures/_dread_data_construct.py#L86

Added line #L86 was not covered by tests

return self._build_construct._build(

Check warning on line 88 in src/mercury_engine_data_structures/_dread_data_construct.py

View check run for this annotation

Codecov / codecov/patch

src/mercury_engine_data_structures/_dread_data_construct.py#L88

Added line #L88 was not covered by tests
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
)


Expand Down

0 comments on commit 65e8671

Please sign in to comment.