+
    Q(¸i‰	  ã                   óº   € ^ RI HtHtHt ]'       d   ^ RIHtHtHt ^RIH	t	H
t
 ^RIHt ] ! R R]4      4       t] ! R R]4      4       t] ! R	 R
]4      4       tR# )é    )ÚTYPE_CHECKINGÚProtocolÚruntime_checkable)ÚConsoleÚConsoleOptionsÚRenderableType)Ú	HelpEntryÚ	HelpPanel)Ú
ColumnSpecc                   ó6   a € ] tR t^
t o RtV 3R lR ltRtV tR# )ÚRendererzJProtocol for column renderers that transform HelpEntry to display content.c                ó"   <€ V ^8„  d   QhRRRR/# )é   Úentryr	   Úreturnr   © )ÚformatÚ__classdict__s   "€Ú]/Users/agent/.openclaw/workspace/venv/lib/python3.14/site-packages/cyclopts/help/protocols.pyÚ__annotate__ÚRenderer.__annotate__   s   ø€ ×CÑC˜kÐCÐ.>ÑCó    c                ó   € R # )Nr   )Úselfr   s   &&r   Ú__call__ÚRenderer.__call__   s   € Ár   r   N©Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   Ú__static_attributes__Ú__classdictcell__©r   s   @r   r   r   
   s   ø‡ € áTçCÖCr   r   c                   ó6   a € ] tR t^t o RtV 3R lR ltRtV tR# )ÚColumnSpecBuilderz Protocol for ColumnSpecBuilders.c          	      óJ   <€ V ^8„  d   QhRRRRRS[ R,          RS[R,          /# )	r   Úconsoler   Úoptionsr   Úentriesr	   r   )r   .)ÚlistÚtuple)r   r   s   "€r   r   ÚColumnSpecBuilder.__annotate__   s8   ø€ ÷ ñ Ø ðØ+;ðÙFJÈ;ÕFWðá	Ð Õ	!ñr   c                ó   € R# )aƒ  Build column specifications based on console settings and entries.

Parameters
----------
console : ~rich.console.Console
    The Rich console instance.
options : ~rich.console.ConsoleOptions
    Console rendering options.
entries : list[HelpEntry]
    List of help entries to be displayed.

Returns
-------
tuple[ColumnSpec, ...]
    Tuple of column specifications for table rendering.
Nr   )r   r)   r*   r+   s   &&&&r   r   ÚColumnSpecBuilder.__call__   s   € ñ& 	r   r   Nr   r%   s   @r   r'   r'      s   ø‡ € á*÷ö r   r'   c                   ó6   a € ] tR t^+t o RtV 3R lR ltRtV tR# )ÚHelpFormattera~  Protocol for help **formatter** functions.

It's the Formatter's job to transform a :class:`.HelpPanel` into rendered text on the display.

Implementations may optionally provide the following methods for custom rendering of "usage" and "description". If these methods are not provided, default rendering will be used.

.. code-block:: python

    def render_usage(self, console: Console, options: ConsoleOptions, usage: Any) -> None:
        """Render the usage line."""
        ...

    def render_description(self, console: Console, options: ConsoleOptions, description: Any) -> None:
        """Render the description."""
        ...
c                ó*   <€ V ^8„  d   QhRRRRRRRR/# )	r   r)   r   r*   r   Úpanelr
   r   Nr   )r   r   s   "€r   r   ÚHelpFormatter.__annotate__>   s3   ø€ ÷ ñ àðð "ðð ð	ð
 
ñr   c                ó   € R# )a  Format and render a single help panel.

Parameters
----------
console : ~rich.console.Console
    Console to render to.
options : ~rich.console.ConsoleOptions
    Console rendering options.
panel : HelpPanel
    Help panel to render (commands, parameters, etc).
Nr   )r   r)   r*   r4   s   &&&&r   r   ÚHelpFormatter.__call__>   s   € ñ" 	r   r   Nr   r%   s   @r   r2   r2   +   s   ø‡ € ñ÷"ö r   r2   N)Útypingr   r   r   Úrich.consoler   r   r   Úhelpr	   r
   Úspecsr   r   r'   r2   r   r   r   Ú<module>r<      sn   ðß =Ñ =çßDÑDç*Ý!ð ôDˆxó Dó ðDð ô˜ó ó ðð2 ô#Hó #ó ò#r   