Perform actual type hint

This commit is contained in:
Roy Nieterau 2025-12-12 10:32:54 +01:00
parent 11ecc69b35
commit f9ca97ec71

View file

@ -1228,7 +1228,7 @@ def oiio_color_convert(
# Get oiioinfo only from first image, otherwise file can't be found
first_input_path = input_path
if frames:
assert isinstance(frames, str) # for type hints
frames: str
first_frame = int(re.split("[ x-]", frames, 1)[0])
first_frame = str(first_frame).zfill(frame_padding or 0)
for token in ["#", "%d"]: