Skip to content

Commit

Permalink
[FIX] Fix Typo in common_write preventing to force cast to dict
Browse files Browse the repository at this point in the history
  • Loading branch information
wbenbihi committed Aug 17, 2022
1 parent d051841 commit 3529321
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hourglass_tensorflow/utils/writers.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def common_write(
)

output_obj = obj
if force_dict_struct or file_extension in [".yml", ".yaml", ".json"]:
if force_dict_struct or file_extension in ["yml", "yaml", "json"]:
# We will cast any pydantic.BaseModel if
# - The force_dict_struct is set to True (pickle only)
# - The output file type require to write a dict
Expand Down

0 comments on commit 3529321

Please sign in to comment.