Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small formatting fixes. #33

Merged
merged 2 commits into from
Apr 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/av2/datasets/tbv/splits.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# <Copyright 2022, Argo AI, LLC. Released under the MIT license.>

"""Splits for the Trust, but Verify (Argoverse 2 Map Change) dataset."""

5 changes: 3 additions & 2 deletions src/av2/utils/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def write_img(img_path: Path, img: NDArrayByte, channel_order: str = "RGB") -> N
cv2.imwrite(str(img_path), img)


def read_json_file(fpath: Path) -> Any:
def read_json_file(fpath: Path) -> Dict[str, Any]:
"""Load dictionary from JSON file.

Args:
Expand All @@ -216,7 +216,8 @@ def read_json_file(fpath: Path) -> Any:
Deserialized Python dictionary.
"""
with open(fpath, "rb") as f:
return json.load(f)
data: Dict[str, Any] = json.load(f)
return data


def save_json_dict(
Expand Down