L iM ddlmZddlmZmZddlmZmZddlm Z ddl m Z ddl mZerddlmZddlmZdd lmZGd d Zy ) ) annotations) TYPE_CHECKINGcast) LayoutConfigvalidate_width)Text)gather_metrics) clean_text)DeltaGenerator)Width) SupportsStrcReZdZedddd ddZeddZy) TextMixintextNcontent)helpwidthct}t||_|r||_t |dt |}|j jd||S)aCWrite text without Markdown or HTML parsing. For monospace text, use |st.code|_. .. |st.code| replace:: ``st.code`` .. _st.code: https://docs.streamlit.io/develop/api-reference/text/st.code Parameters ---------- body : str The string to display. help : str or None A tooltip that gets displayed next to the text. If this is ``None`` (default), no tooltip is displayed. The tooltip can optionally contain GitHub-flavored Markdown, including the Markdown directives described in the ``body`` parameter of ``st.markdown``. width : "content", "stretch", or int The width of the text element. This can be one of the following: - ``"content"`` (default): The width of the element matches the width of its content, but doesn't exceed the width of the parent container. - ``"stretch"``: The width of the element matches the width of the parent container. - An integer specifying the width in pixels: The element has a fixed width. If the specified width is greater than the width of the parent container, the width of the element matches the width of the parent container. Example ------- >>> import streamlit as st >>> >>> st.text("This is text\n[and more text](that's not a Markdown link).") .. output :: https://doc-text.streamlit.app/ height: 220px T) allow_content)rr) layout_config) TextProtor bodyrrrdg_enqueue)selfrrr text_protors ]/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/streamlit/elements/text.pyrzTextMixin.textsRh[ $T*  "JOuD1$51 ww -PPctd|S)zGet our DeltaGenerator.r )r)rs rrz TextMixin.dg]s$d++r)rr rz str | Nonerr returnr )r r )__name__ __module__ __qualname__r rpropertyrrrrrsbF   ;Q;Q ;Q  ;Q  ;Q;Qz,,rrN) __future__rtypingrr#streamlit.elements.lib.layout_utilsrrstreamlit.proto.Text_pb2rrstreamlit.runtime.metrics_utilr streamlit.string_utilr streamlit.delta_generatorr r streamlit.type_utilr rr%rrr.s1#&L69,89/B,B,r