mirror of
https://github.com/iluvcapra/ptulsconv.git
synced 2025-12-31 08:50:48 +00:00
Style fixes
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user