typing things

This commit is contained in:
2025-12-16 13:11:59 -08:00
parent 30bbb05c2d
commit ec8c3e30f5
2 changed files with 18 additions and 6 deletions

View File

@@ -173,8 +173,9 @@ def _parse_unrecognized(line, line_number):
return StmtUnrecognized(content=line, line_number=line_number)
def _parse_columns_for_standard_form(line, event_field_length,
source_field_length, line_number):
def _parse_columns_for_standard_form(line: str, event_field_length: int,
source_field_length: int,
line_number: int):
col_widths = _edl_column_widths(event_field_length, source_field_length)
if sum(col_widths) > len(line):

View File

@@ -12,10 +12,21 @@ class StmtFCM(NamedTuple):
drop: bool
line_number: int
StmtEvent = namedtuple("Event", ["event", "source", "channels", "trans",
"trans_op", "source_in", "source_out",
"record_in", "record_out", "format",
"line_number"])
class StmtEvent(NamedTuple):
event: int
source: str
channels: str
trans: str
trans_op: str
source_in: str
source_out: str
record_in: str
record_out: str
format: int
line_number: int
StmtAudioExt = namedtuple("AudioExt", ["audio3", "audio4", "line_number"])
StmtClipName = namedtuple("ClipName", ["name", "affect", "line_number"])
StmtSourceFile = namedtuple("SourceFile", ["filename", "line_number"])