File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import os
22from enum import Enum
33from functools import partial
4+ from typing import Dict
45from musicalgestures ._video import MgVideo
56from musicalgestures ._utils import ffmpeg_cmd , get_length , generate_outfilename
67
@@ -122,14 +123,14 @@ def __init__(
122123 def convert_projection (
123124 self ,
124125 target_projection : Projection | str ,
125- options : dict [str , str ] = None ,
126+ options : Dict [str , str ] = None ,
126127 print_cmd : bool = False ,
127128 ):
128129 """
129130 Convert the video to a different projection.
130131 Args:
131132 target_projection (Projection): Target projection.
132- options (dict [str, str], optional): Options for the conversion. Defaults to None.
133+ options (Dict [str, str], optional): Options for the conversion. Defaults to None.
133134 print_cmd (bool, optional): Print the ffmpeg command. Defaults to False.
134135 """
135136 target_projection = self ._parse_projection (target_projection )
Original file line number Diff line number Diff line change 1- from typing import Union
1+ from typing import Union , Tuple
22
33class MgProgressbar ():
44 """
@@ -1062,7 +1062,7 @@ def ffprobe(filename):
10621062 else :
10631063 return out
10641064
1065- def get_widthheight (filename : str ) -> tuple [int , int ]:
1065+ def get_widthheight (filename : str ) -> Tuple [int , int ]:
10661066 """
10671067 Gets the width and height of a video using FFprobe.
10681068
You can’t perform that action at this time.
0 commit comments