
    ~h                     l    U d dl mZ d dlmZ d dlmZ  ee      ZeZee	d<   de
de
dz  dedz  d	dfd
Zy)    )	TypeAlias)ProgressFnT)
get_loggerProgressHandlerprogresstotalNmessagereturnc                    K   || |z  dz  }|  d| d|dd}n|  }|r	d| d| }nd| }t         j                  |       yw)	a  Default handler for progress notifications.

    Logs progress updates at debug level, properly handling missing total or message values.

    Args:
        progress: Current progress value
        total: Optional total expected value
        message: Optional status message
    Nd   /z (z.1fz%)z
Progress: z - )loggerdebug)r   r   r	   percentprogress_strlog_msgs         S/opt/mcp/mcp-sentiment/venv/lib/python3.12/site-packages/fastmcp/client/progress.pydefault_progress_handlerr      so      e#s*"1UG2gc]"= # |nCy9|n-
LLs   AA)typingr   mcp.shared.sessionr   fastmcp.utilities.loggingr   __name__r   r   __annotations__floatstrr        r   <module>r      sO     * 0	H	( (!DL36:	r   