From 5b89faf652e4f979d34ded6e62a6418926603799 Mon Sep 17 00:00:00 2001 From: Soham Tilekar Date: Fri, 29 Mar 2024 20:01:28 +0530 Subject: [PATCH] Add type hints to set_path function --- vidiopy/config.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vidiopy/config.py b/vidiopy/config.py index b462387..2bc8884 100644 --- a/vidiopy/config.py +++ b/vidiopy/config.py @@ -1,6 +1,7 @@ """This module manages the configuration of ffmpeg and ffprobe binaries.""" import os +from typing_extensions import Union import ffmpegio __all__ = ["FFMPEG_BINARY", "FFPROBE_BINARY", "set_path"] @@ -40,7 +41,9 @@ ... -def set_path(ffmpeg_path: str | None = None, ffprobe_path: str | None = None): +def set_path( + ffmpeg_path: Union[str, None] = None, ffprobe_path: Union[str, None] = None +): """ Sets the paths for the ffmpeg and ffprobe binaries.