Skip to content

Commit dda04eb

Browse files
author
Alexander Refsum Jensenius
committed
fix build issues
1 parent d3c59f5 commit dda04eb

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

musicalgestures/_360video.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import os
22
from enum import Enum
33
from functools import partial
4+
from typing import Dict
45
from musicalgestures._video import MgVideo
56
from 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)

musicalgestures/_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Union
1+
from typing import Union, Tuple
22

33
class 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

0 commit comments

Comments
 (0)