Style fixes

This commit is contained in:
Jamie Hardt
2021-06-06 16:46:29 -07:00
parent 3cd5a99dbb
commit 5559e1b057

View File

@@ -1,5 +1,5 @@
from ptulsconv.docparser.tag_compiler import Event
from typing import Optional, List, Tuple
from typing import Optional, List, Tuple, Any
from dataclasses import dataclass
from fractions import Fraction
@@ -11,7 +11,7 @@ def make_entities(from_events: List[Event]) -> Tuple[List['GenericEvent'], List[
adr_lines = list()
for event in from_events:
result = make_entity(event)
result: Any = make_entity(event)
if type(result) is ADRLine:
result: ADRLine
adr_lines.append(result)
@@ -38,6 +38,7 @@ def make_entity(from_event: Event) -> Optional[object]:
new.finish = from_event.finish
return new
@dataclass
class GenericEvent:
title: Optional[str]
@@ -137,4 +138,3 @@ class ADRLine(GenericEvent):
self.omitted = False
self.adlib = False
self.optional = False