Type annotations

This commit is contained in:
Jamie Hardt
2021-05-27 23:08:20 -07:00
parent 7558e8f63c
commit 2cc4f423cf

View File

@@ -1,6 +1,7 @@
from .doc_entity import SessionDescriptor
from .tagged_string_parser_visitor import parse_tags
from fractions import Fraction
# field_map maps tags in the text export to fields in FMPXMLRESULT
# - tuple field 0 is a list of tags, the first tag with contents will be used as source
# - tuple field 1 is the field in FMPXMLRESULT
@@ -42,6 +43,33 @@ adr_field_map = ((['Title', 'PT.Session.Name'], 'Title', str),
)
class ADRLine:
title: str
supervisor: str
client: str
scene: str
version: str
reel: str
start: str
finish: str
priority: int
cue_number: str
character_id: str
prompt: str
reason: str
requested_by: str
note: str
spot: str
shot: str
effort: bool
tv: bool
tbw: bool
omitted: bool
adlib: bool
optional: bool
done: bool
class ADRDocument:
document: SessionDescriptor