Skip to content

Commit

Permalink
Fix pyflake errors
Browse files Browse the repository at this point in the history
  • Loading branch information
marcenacp committed Aug 31, 2023
1 parent 4fec2ae commit e0a9cbd
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
"""Migration: https://github.com/mlcommons/croissant/discussions/151."""

import ml_croissant as mlc
from ml_croissant._src.core.issues import Issues


def _migrate_field(json_ld):
for field in ["source", "references"]:
Expand Down Expand Up @@ -33,7 +30,6 @@ def up(json_ld):
sub_fields = field.get("subField", [])
if isinstance(sub_fields, dict):
sub_fields = [sub_fields]
field["subField"] = sub_field
for k, sub_field in enumerate(sub_fields):
sub_field = _migrate_field(sub_field)
field["subField"][k] = sub_field
Expand Down

0 comments on commit e0a9cbd

Please sign in to comment.