HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/pip/_vendor/rich/__pycache__/status.cpython-310.pyc
o

@%NeI�@s:ddlmZddlmZmZddlmZmZddlm	Z	ddl
mZddlm
Z
ddlmZGd	d
�d
e	�Zedkr�ddlmZdd
lmZe�Ze�d��>Zed�e�d�ed�e�d�ed�ejddd�ed�e�d�ed�ejdddd�ed�Wd�n1s�wYe�d�dSdS)�)�
TracebackType)�Optional�Type�)�Console�RenderableType)�JupyterMixin)�Live)�Spinner)�	StyleTypec
@s�eZdZdZdddddd�ded	eed
edede	d
e	fdd�Z
edefdd��Z
ed&dd��Z	d'dddd�deed
eedeedee	ddf
dd�Zd(dd�Zd(dd�Zdefdd�Zd)dd �Zd!eeed"eed#eeddfd$d%�ZdS)*�Statusa�Displays a status indicator with a 'spinner' animation.

    Args:
        status (RenderableType): A status renderable (str or Text typically).
        console (Console, optional): Console instance to use, or None for global console. Defaults to None.
        spinner (str, optional): Name of spinner animation (see python -m rich.spinner). Defaults to "dots".
        spinner_style (StyleType, optional): Style of spinner. Defaults to "status.spinner".
        speed (float, optional): Speed factor for spinner animation. Defaults to 1.0.
        refresh_per_second (float, optional): Number of refreshes per second. Defaults to 12.5.
    N�dotszstatus.spinnerg�?g)@)�console�spinner�
spinner_style�speed�refresh_per_second�statusrrrrrcCs<||_||_||_t||||d�|_t|j||dd�|_dS)N��text�stylerT)rr�	transient)rrrr
�_spinnerr	�
renderable�_live)�selfrrrrrr�r�9/usr/lib/python3/dist-packages/pip/_vendor/rich/status.py�__init__s
�zStatus.__init__�returncC�|jS�N)r�rrrrr,szStatus.renderablercCs|jjS)z+Get the Console used by the Status objects.)rrr"rrrr0szStatus.console)rrrcCs||dur||_|dur||_|dur||_|dur0t||j|j|jd�|_|jj|jdd�dS|jj|j|j|jd�dS)a�Update status.

        Args:
            status (Optional[RenderableType], optional): New status renderable or None for no change. Defaults to None.
            spinner (Optional[str], optional): New spinner or None for no change. Defaults to None.
            spinner_style (Optional[StyleType], optional): New spinner style or None for no change. Defaults to None.
            speed (Optional[float], optional): Speed factor for spinner animation or None for no change. Defaults to None.
        NrT)�refresh)rrrr
rr�updater)rrrrrrrrr$5s�
�z
Status.updatecC�|j��dS)zStart the status animation.N)r�startr"rrrr&U�zStatus.startcCr%)zStop the spinner animation.N)r�stopr"rrrr(Yr'zStatus.stopcCr r!)rr"rrr�__rich__]szStatus.__rich__cCs|��|Sr!)r&r"rrr�	__enter__`szStatus.__enter__�exc_type�exc_val�exc_tbcCs|��dSr!)r()rr+r,r-rrr�__exit__dszStatus.__exit__)rrr!)rN)rr)�__name__�
__module__�__qualname__�__doc__rrr�strr�floatr�propertyr
rrr$r&r(r)r*r�
BaseExceptionrr.rrrrrsj������
�������
�
 


����r�__main__)�sleep)rz"[magenta]Covid detector booting up�zImporting advanced AIzAdvanced Covid AI Readyz[bold blue] Scanning for Covid�earth)rrz*Found 10,000,000,000 copies of Covid32.exez%[bold red]Moving Covid32.exe to Trash�bouncingBall�yellow)rrr�Nz&[bold green]Covid deleted successfully)�typesr�typingrrrrr�jupyterr�liver	rr
rrrr/�timer8r�logr$�printrrrr�<module>s>b


�
��