Skip to content

Commit ef67496

Browse files
author
Alexander Refsum Jensenius
committed
fix build issues
1 parent 2d21bb7 commit ef67496

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

musicalgestures/_360video.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22
from enum import Enum
33
from functools import partial
4-
from typing import Dict
4+
from typing import Dict, Union
55
from musicalgestures._video import MgVideo
66
from musicalgestures._utils import ffmpeg_cmd, get_length, generate_outfilename
77

@@ -96,7 +96,7 @@ class Mg360Video(MgVideo):
9696
def __init__(
9797
self,
9898
filename: str,
99-
projection: str | Projection,
99+
projection: Union[str, Projection],
100100
camera: str = None,
101101
**kwargs,
102102
):
@@ -122,7 +122,7 @@ def __init__(
122122

123123
def convert_projection(
124124
self,
125-
target_projection: Projection | str,
125+
target_projection: Union[Projection, str],
126126
options: Dict[str, str] = None,
127127
print_cmd: bool = False,
128128
):
@@ -174,7 +174,7 @@ def convert_projection(
174174
self.filename = output_name
175175
self.projection = target_projection
176176

177-
def _parse_projection(self, projection: str | Projection):
177+
def _parse_projection(self, projection: Union[str, Projection]):
178178
"""
179179
Parse projection type.
180180
Args:

0 commit comments

Comments
 (0)