Skip to content

Commit

Permalink
Linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Smartappli authored Jun 30, 2024
1 parent 0022ed7 commit e54a858
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/syft/src/syft/util/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,11 @@ def resolve_references(json_mappings: dict[str, dict]) -> dict[str, dict]:
if _type_str in primitive_mapping.values():
# no issue with primitive types
continue
else:
elif _type_str not in json_mappings.keys():
# if we don't have a type yet its because its not supported
# lets create an empty type to satisfy the generation process
if _type_str not in json_mappings.keys():
reference = make_fake_type(_type_str)
new_types[_type_str] = reference
reference = make_fake_type(_type_str)
new_types[_type_str] = reference

# if the type is a reference we need to replace its type entry after
replace_types[attribute] = {
Expand Down

0 comments on commit e54a858

Please sign in to comment.