@@ -9,7 +9,7 @@ class TextBase(Text):
99 def __init__ (self , id : str , sort_key : str , content_type : TextRowContentType = TextRowContentType .SEGMENT ) -> None :
1010 self ._id = id
1111 self ._sort_key = sort_key
12- self ._content_type = content_type
12+ self ._default_content_type = content_type
1313
1414 @property
1515 def id (self ) -> str :
@@ -20,12 +20,12 @@ def sort_key(self) -> str:
2020 return self ._sort_key
2121
2222 @property
23- def content_type (self ) -> TextRowContentType :
24- return self ._content_type
23+ def default_content_type (self ) -> TextRowContentType :
24+ return self ._default_content_type
2525
2626 def _create_row (self , text : str , ref : Any , flags : TextRowFlags = TextRowFlags .SENTENCE_START ) -> TextRow :
2727 text = text .strip ()
28- return TextRow (self .id , ref , [text ] if len (text ) > 0 else [], flags , content_type = self .content_type )
28+ return TextRow (self .id , ref , [text ] if len (text ) > 0 else [], flags , content_type = self .default_content_type )
2929
3030 def _create_empty_row (self , ref : Any , flags : TextRowFlags = TextRowFlags .NONE ) -> TextRow :
31- return TextRow (self .id , ref , flags = flags , content_type = self .content_type )
31+ return TextRow (self .id , ref , flags = flags , content_type = self .default_content_type )
0 commit comments