U
    ˜ARdz  ã                   @   sJ   d dl mZmZ d dlmZ d dlmZ er8d dlm	Z	 G dd„ dƒZ
dS )é    )ÚTYPE_CHECKINGÚcast)ÚSnow)Úgather_metrics)ÚDeltaGeneratorc                   @   s4   e Zd Zedƒddœdd„ƒZeddœdd„ƒZdS )	Ú	SnowMixinÚsnowr   )Úreturnc                 C   s   t ƒ }d|_| j d|¡S )zÐDraw celebratory snowfall.

        Example
        -------
        >>> import streamlit as st
        >>>
        >>> st.snow()

        ...then watch your app and get ready for a cool celebration!

        Tr   )Ú	SnowProtoÚshowÚdgZ_enqueue)ÚselfZ
snow_proto© r   ú;/tmp/pip-unpacked-wheel-b9et7o5g/streamlit/elements/snow.pyr      s    zSnowMixin.snowc                 C   s
   t d| ƒS )zGet our DeltaGenerator.r   )r   )r   r   r   r   r   *   s    zSnowMixin.dgN)Ú__name__Ú
__module__Ú__qualname__r   r   Úpropertyr   r   r   r   r   r      s   r   N)Útypingr   r   Zstreamlit.proto.Snow_pb2r   r
   Zstreamlit.runtime.metrics_utilr   Zstreamlit.delta_generatorr   r   r   r   r   r   Ú<module>   s
   