diff --git a/src/av2/datasets/tbv/splits.py b/src/av2/datasets/tbv/splits.py index 358814b2..253274cb 100644 --- a/src/av2/datasets/tbv/splits.py +++ b/src/av2/datasets/tbv/splits.py @@ -1,4 +1,3 @@ # """Splits for the Trust, but Verify (Argoverse 2 Map Change) dataset.""" - diff --git a/src/av2/utils/io.py b/src/av2/utils/io.py index 5e024308..31a0be3d 100644 --- a/src/av2/utils/io.py +++ b/src/av2/utils/io.py @@ -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: @@ -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(