This commit is contained in:
2026-09-19 14:32:35 -07:00
parent bd0b09d1db
commit 888d9aa5d9
+2 -2
View File
@@ -1,13 +1,13 @@
""" """
Methods for converting string reprentations of film footage. Methods for converting string reprentations of film footage.
""" """
from __future__ import annotations
import re import re
from fractions import Fraction from fractions import Fraction
from typing import Optional
def footage_to_seconds(footage: str) -> Optional[Fraction]: def footage_to_seconds(footage: str) -> Fraction | None:
""" """
Converts a string representation of a footage (35mm, 24fps) Converts a string representation of a footage (35mm, 24fps)
into a :class:`Fraction`, this fraction being a some number of into a :class:`Fraction`, this fraction being a some number of