
    gr	                    t    d dl mZ d dlmZmZ d dlmZ d dlm	Z	 d dl
mZ erd dlmZ d dlmZ  G d d	      Zy
)    )annotations)TYPE_CHECKINGcast)Text)gather_metrics)
clean_text)DeltaGenerator)SupportsStrc                  L    e Zd Z ed      dd	 	 	 	 	 dd       Zedd       Zy)	TextMixintextN)helpc                   t               }t        |      |_        |r||_        | j                  j                  d|      S )a  Write 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``.

        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

        r   )	TextProtor   bodyr   dg_enqueue)selfr   r   
text_protos       L/var/www/openai/venv/lib/python3.12/site-packages/streamlit/elements/text.pyr   zTextMixin.text   s9    L [
$T*
"JOww
33    c                    t        d|       S )zGet our DeltaGenerator.r	   )r   )r   s    r   r   zTextMixin.dgI   s     $d++r   )r   r
   r   z
str | Nonereturnr	   )r   r	   )__name__
__module____qualname__r   r   propertyr    r   r   r   r      sO    F
  	)4)4 	)4
 
)4 )4V , ,r   r   N)
__future__r   typingr   r   streamlit.proto.Text_pb2r   r   streamlit.runtime.metrics_utilr   streamlit.string_utilr   streamlit.delta_generatorr	   streamlit.type_utilr
   r   r   r   r   <module>r&      s)    # & 6 9 ,8/0, 0,r   