Skip to content

Commit

Permalink
Add type hints to set_path function
Browse files Browse the repository at this point in the history
  • Loading branch information
SohamTilekar committed Mar 29, 2024
1 parent eb7262f commit 5b89faf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vidiopy/config.py
Original file line number Diff line number Diff line change
@@ -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"]
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 5b89faf

Please sign in to comment.