Skip to content

Commit

Permalink
add type ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
pmeier committed Dec 4, 2023
1 parent 948670f commit 9dfa237
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchvision/prototype/tv_tensors/_label.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def to_categories(self) -> Any:
if self.categories is None:
raise RuntimeError("Label does not have categories")

return tree_map(lambda idx: self.categories[idx], self.tolist())
return tree_map(lambda idx: self.categories[idx], self.tolist()) # type: ignore[index]


class OneHotLabel(_LabelBase):
Expand Down

0 comments on commit 9dfa237

Please sign in to comment.