More typing

This commit is contained in:
Jamie Hardt
2023-05-31 18:10:44 -07:00
parent a6f042c76f
commit 51ed92f5df
4 changed files with 41 additions and 36 deletions

View File

@@ -1,20 +1,19 @@
# pycmx
# (c) 2018 Jamie Hardt
from collections import namedtuple
# from collections import namedtuple
from .parse_cmx_statements import (parse_cmx3600_statements, StmtEvent,StmtFCM )
from .parse_cmx_statements import (parse_cmx3600_statements)
from .edit_list import EditList
def parse_cmx3600(f):
from typing import TextIO
def parse_cmx3600(f: TextIO):
"""
Parse a CMX 3600 EDL.
Args:
f : a file-like object, anything that's readlines-able.
Returns:
An :class:`pycmx.edit_list.EditList`.
:param TextIO f: a file-like object, anything that's readlines-able.
:returns: An :class:`pycmx.edit_list.EditList`.
"""
statements = parse_cmx3600_statements(f)
return EditList(statements)