Skip to content

Commit

Permalink
flake8 fix (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
trangevi authored Aug 16, 2022
1 parent 5d95ac8 commit 2224970
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inference_schema/parameter_types/_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def get_swagger_for_list(python_data):
else:
nested_item_swagger = handle_standard_types(data)
example.append(nested_item_swagger['example'])
del(nested_item_swagger['example'])
del nested_item_swagger['example']

schema = {"type": "array", "items": nested_item_swagger, "example": example}
return schema
Expand All @@ -92,7 +92,7 @@ def get_swagger_for_nested_dict(python_data):
nested_item_swagger = handle_standard_types(data)

examples[key] = nested_item_swagger['example']
del(nested_item_swagger['example'])
del nested_item_swagger['example']
nested_items[key] = nested_item_swagger

schema = {"type": "object", "required": required, "properties": nested_items, "example": examples}
Expand Down

0 comments on commit 2224970

Please sign in to comment.