22from typing import Any , Callable , Iterable , List , Optional , Sequence , Set , cast
33
44from ..scripture .verse_ref import Versification
5- from .data_type import DataType
65from .n_parallel_text_corpus_base import NParallelTextCorpusBase
76from .n_parallel_text_row import NParallelTextRow
87from .scripture_ref import ScriptureRef
98from .text_corpus import TextCorpus
109from .text_corpus_enumerator import TextCorpusEnumerator
1110from .text_row import TextRow , TextRowFlags
11+ from .text_row_content_type import TextRowContentType
1212
1313
1414class _RangeRow :
1515 refs : List [Any ]
1616 segment : List [str ]
1717 is_sentence_start : bool = False
18- data_type : DataType = DataType . SENTENCE
18+ data_type : TextRowContentType = TextRowContentType . SEGMENT
1919
2020 @property
2121 def is_in_range (self ):
@@ -38,7 +38,7 @@ def __init__(self, n: int):
3838 self .text_id = ""
3939 self .versifications : Optional [List [Versification ]] = None
4040 self .row_ref_comparer = None
41- self .data_type = DataType . SENTENCE
41+ self .data_type = TextRowContentType . SEGMENT
4242
4343 @property
4444 def is_in_range (self ) -> bool :
@@ -293,7 +293,7 @@ def _create_rows(
293293 yield range_info .create_row ()
294294
295295 default_refs = [[r .ref for r in rows if r is not None ][0 ]]
296- data_type = DataType . SENTENCE
296+ data_type = TextRowContentType . SEGMENT
297297
298298 text_id : Optional [str ] = None
299299 refs : List [List [Any ]] = []
0 commit comments