Skip to content

Commit 89a93d5

Browse files
committed
Fix formatting
1 parent 267a1ee commit 89a93d5

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

machine/corpora/place_markers_usfm_update_block_handler.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,9 @@ def process_block(self, block: UsfmUpdateBlock) -> UsfmUpdateBlock:
125125
except ValueError:
126126
raise UsfmUpdateBlockHandlerException(
127127
block,
128-
f'No token "{tok}" found in text "{trg_sent}" at or beyond index {trg_tok_starts[-1] + prev_len if len(trg_tok_starts) > 0 else 0}. Is the versification correctly specified?',
128+
f'No token "{tok}" found in text "{trg_sent}" at or beyond index'
129+
f"{trg_tok_starts[-1] + prev_len if len(trg_tok_starts) > 0 else 0}."
130+
"Is the versification correctly specified?",
129131
)
130132
trg_tok_starts.append(index_of_trg_tok_in_sent)
131133
prev_len = len(tok)

machine/corpora/scripture_ref.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,8 @@ def __lt__(self, other: object) -> bool:
120120
return self.compare_to(other) < 0
121121

122122
def __hash__(self) -> int:
123-
# Using to_relaxed() is necessary to maintain equality across relaxed refs, __eq__ properly handles relaxed ref comparison
123+
# Using to_relaxed() is necessary to maintain equality across relaxed refs,
124+
# __eq__ properly handles relaxed ref comparison
124125
return hash((self.verse_ref, tuple(self.to_relaxed().path)))
125126

126127
def __repr__(self) -> str:

machine/corpora/update_usfm_parser_handler.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from typing import Callable, Dict, Iterable, List, Optional, Sequence, Tuple, Union
33

44
from ..scripture.verse_ref import IgnoreSegmentsVerseRef, VerseRef, Versification
5-
65
from .scripture_ref import ScriptureRef
76
from .scripture_ref_usfm_parser_handler import ScriptureRefUsfmParserHandler, ScriptureTextType
87
from .usfm_parser_state import UsfmParserState

0 commit comments

Comments
 (0)