[Misc] Small: Fix video loader return type annotations. (#20389)

Signed-off-by: Chenheli Hua <huachenheli@outlook.com>
This commit is contained in:
Chenheli Hua
2025-07-03 03:10:39 +00:00
committed by GitHub
parent 2e25bb12a8
commit b616f6a53d
3 changed files with 14 additions and 11 deletions
+2 -2
View File
@@ -228,7 +228,7 @@ class MediaConnector:
video_url: str,
*,
image_mode: str = "RGB",
) -> npt.NDArray:
) -> tuple[npt.NDArray, dict[str, Any]]:
"""
Load video from a HTTP or base64 data URL.
"""
@@ -248,7 +248,7 @@ class MediaConnector:
video_url: str,
*,
image_mode: str = "RGB",
) -> npt.NDArray:
) -> tuple[npt.NDArray, dict[str, Any]]:
"""
Asynchronously load video from a HTTP or base64 data URL.