mirror of
https://github.com/iluvcapra/ptulsconv.git
synced 2026-10-01 17:27:27 +00:00
ruff
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user