From 4d48fa9342057f51776b495265cd8602a6de83d7 Mon Sep 17 00:00:00 2001 From: Thomas Fritz Date: Mon, 24 Jul 2023 15:49:16 +0200 Subject: [PATCH] Added missing type hint to EncodedVideo.from_path()'s return value --- pytorchvideo/data/encoded_video.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytorchvideo/data/encoded_video.py b/pytorchvideo/data/encoded_video.py index 227227ad..ddc6aa4a 100644 --- a/pytorchvideo/data/encoded_video.py +++ b/pytorchvideo/data/encoded_video.py @@ -53,7 +53,7 @@ def from_path( decode_audio: bool = True, decoder: str = "pyav", **other_args: Dict[str, Any], - ): + ) -> Video: """ Fetches the given video path using PathManager (allowing remote uris to be fetched) and constructs the EncodedVideo object.