File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change 1
- from __future__ import annotations
2
-
3
1
import xml .etree .ElementTree as ET
4
- from typing import TYPE_CHECKING , cast
2
+ from fractions import Fraction
5
3
from xml .etree .ElementTree import Element , ElementTree , SubElement , indent
6
4
5
+ from auto_editor .ffwrapper import FileInfo
7
6
from auto_editor .timeline import Clip , v3
8
-
9
- if TYPE_CHECKING :
10
- from fractions import Fraction
11
-
12
- from auto_editor .ffwrapper import FileInfo
13
- from auto_editor .utils .log import Log
14
-
7
+ from auto_editor .utils .log import Log
15
8
16
9
"""
17
10
Export a FCPXML 11 file readable with Final Cut Pro 10.6.8 or later.
@@ -146,7 +139,7 @@ def make_clip(ref: str, clip: Clip) -> None:
146
139
)
147
140
148
141
if tl .v and tl .v [0 ]:
149
- clips = cast ( list [ Clip ], tl .v [0 ])
142
+ clips = [ clip for clip in tl .v [0 ] if isinstance ( clip , Clip )]
150
143
elif tl .a and tl .a [0 ]:
151
144
clips = tl .a [0 ]
152
145
else :
You can’t perform that action at this time.
0 commit comments