o
    ßñhr	  ã                   @  sn   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	„ d	ƒZd
S )é    )Úannotations)ÚTYPE_CHECKINGÚcast)ÚText)Úgather_metrics)Ú
clean_text)ÚDeltaGenerator)ÚSupportsStrc                   @  s2   e Zd Zedƒddœdd
d„ƒZeddd„ƒZdS )Ú	TextMixinÚtextN)ÚhelpÚbodyr	   r   ú
str | NoneÚreturnr   c                C  s(   t ƒ }t|ƒ|_|r||_| 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   r   r   ÚdgÚ_enqueue)Úselfr   r   Ú
text_proto© r   úK/var/www/vscode/kcb/lib/python3.10/site-packages/streamlit/elements/text.pyr      s
   &
zTextMixin.textc                 C  s
   t d| ƒS )zGet our DeltaGenerator.r   )r   )r   r   r   r   r   I   s   
zTextMixin.dg)r   r	   r   r   r   r   )r   r   )Ú__name__Ú
__module__Ú__qualname__r   r   Úpropertyr   r   r   r   r   r
      s    ü+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   r   Ú<module>   s   