mirror of
https://github.com/iluvcapra/ptulsconv.git
synced 2026-01-02 09:50:48 +00:00
Style fixes
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
from ptulsconv.docparser.tag_compiler import Event
|
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 dataclasses import dataclass
|
||||||
from fractions import Fraction
|
from fractions import Fraction
|
||||||
|
|
||||||
@@ -11,7 +11,7 @@ def make_entities(from_events: List[Event]) -> Tuple[List['GenericEvent'], List[
|
|||||||
adr_lines = list()
|
adr_lines = list()
|
||||||
|
|
||||||
for event in from_events:
|
for event in from_events:
|
||||||
result = make_entity(event)
|
result: Any = make_entity(event)
|
||||||
if type(result) is ADRLine:
|
if type(result) is ADRLine:
|
||||||
result: ADRLine
|
result: ADRLine
|
||||||
adr_lines.append(result)
|
adr_lines.append(result)
|
||||||
@@ -38,6 +38,7 @@ def make_entity(from_event: Event) -> Optional[object]:
|
|||||||
new.finish = from_event.finish
|
new.finish = from_event.finish
|
||||||
return new
|
return new
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class GenericEvent:
|
class GenericEvent:
|
||||||
title: Optional[str]
|
title: Optional[str]
|
||||||
@@ -137,4 +138,3 @@ class ADRLine(GenericEvent):
|
|||||||
self.omitted = False
|
self.omitted = False
|
||||||
self.adlib = False
|
self.adlib = False
|
||||||
self.optional = False
|
self.optional = False
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user