Skip to content

Video editing with Python

Fix typing for python 3.9

osaajanife22511e8c9d
diff --git a/moviepy/video/re_mux.py b/moviepy/video/re_mux.py
index ee68641d..3e415e0a 100644
--- a/moviepy/video/re_mux.py
+++ b/moviepy/video/re_mux.py
@@ -2,9 +2,10 @@
import subprocess
from pathlib import Path
+from typing import Union
-def remux_video(input_file: str | Path, output_file: str | Path):
+def remux_video(input_file: Union[str, Path], output_file: Union[str, Path]):
"""
Re-mux a video file using ffmpeg.
This may fix issues with corrupted video file.