# -*- coding: utf-8 -*-importtypingasTimportdataclassesfromfunc_args.apiimportREQ,OPTfrom..type_enumimportTypeEnumfrom..mark_or_nodeimportBaseNodefrom..markdown_helpersimportadd_style_to_markdownifT.TYPE_CHECKING:# pragma: no coverfrom..marks.mark_linkimportMarkLinkfrom..marks.mark_emimportMarkEmfrom..marks.mark_strongimportMarkStrongfrom..marks.mark_strikeimportMarkStrikefrom..marks.mark_subsupimportMarkSubsupfrom..marks.mark_underlineimportMarkUnderlinefrom..marks.mark_text_colorimportMarkTextColorfrom..marks.mark_annotationimportMarkAnnotationfrom..marks.mark_background_colorimportMarkBackgroundColor
[docs]@dataclasses.dataclass(frozen=True)classNodeText(BaseNode):""" Holds document text within the ADF structure. The text node is an inline node that contains the actual text content. It can have formatting marks applied such as strong, em, link, code, strike, subsup, textColor, and underline. - https://developer.atlassian.com/cloud/jira/platform/apis/document/nodes/text/ """type:str=TypeEnum.text.valuetext:str=REQmarks:list[T.Union["MarkLink","MarkEm","MarkStrong","MarkStrike","MarkSubsup","MarkUnderline","MarkTextColor","MarkAnnotation","MarkBackgroundColor",]]=OPT