Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Hackerman342 committed May 2, 2024
1 parent a79e7e1 commit b385e4c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions py/farm_ng/core/events_file_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@


def proto_to_json_file(
file_path: str | Path, proto_message: Message, preserving_proto_field_name=False,
file_path: str | Path,
proto_message: Message,
preserving_proto_field_name=False,
) -> bool:
"""Write a proto Message to a JSON file. The parent directory of the file must exist.
Expand All @@ -48,7 +50,8 @@ def proto_to_json_file(
with Path(file_path).open("w", encoding="utf-8") as file:
file.write(
MessageToJson(
proto_message, preserving_proto_field_name=preserving_proto_field_name,
proto_message,
preserving_proto_field_name=preserving_proto_field_name,
),
)
file.write("\n")
Expand Down

0 comments on commit b385e4c

Please sign in to comment.