+
    Si/                         R t ^ RIHt ^ RIHt ]P                  t]P
                  t]P                  t ! R R]P                  4      t]	R8X  d   ]P                  ! 4        R# R# )z!Tests for fire docstrings module.)
docstrings)	testutilsc                      a  ] tR t^t o R tR tR tR tR tR t	R t
R tR	 tR
 tR tR tR tR tR tR tR tR tRtV tR# )DocstringsTestc                p    R p\         P                  ! V4      p\        R R7      pV P                  W24       R# )A simple one line docstring.summaryNr   parseDocstringInfoassertEqualself	docstringdocstring_infoexpected_docstring_infos   &   S/home/ubuntu/hermes-agent/venv/lib/python3.14/site-packages/fire/docstrings_test.pytest_one_line_simple#DocstringsTest.test_one_line_simple   s6    2I%%i0N+. 	,=    c                p    R p\         P                  ! V4      p\        RR7      pV P                  W24       R# )z(
      A simple one line docstring.
    r   r   Nr
   r   s   &   r   test_one_line_simple_whitespace.DocstringsTest.test_one_line_simple_whitespace%   s:    I  %%i0N+. 	,=r   c                p    R p\         P                  ! V4      p\        RR7      pV P                  W24       R# )zA one line docstring that is both a little too verbose and a little too long so it keeps going well beyond a reasonable length for a one-liner.
    zA one line docstring that is both a little too verbose and a little too long so it keeps going well beyond a reasonable length for a one-liner.r   Nr
   r   s   &   r   test_one_line_too_long%DocstringsTest.test_one_line_too_long/   s<    I  %%i0N+
 	,=r   c                p    R p\         P                  ! V4      p\        RR7      pV P                  W24       R# )ztA one line docstring that is both a little too verbose and a little too long
    so it runs onto a second line.
    kA one line docstring that is both a little too verbose and a little too long so it runs onto a second line.r   Nr
   r   s   &   r   test_one_line_runs_over&DocstringsTest.test_one_line_runs_over<   s<    I  %%i0N+; 	,=r   c                p    R p\         P                  ! V4      p\        RR7      pV P                  W24       R# )z}
      A one line docstring that is both a little too verbose and a little too long
      so it runs onto a second line.
    r   r   Nr
   r   s   &   r   "test_one_line_runs_over_whitespace1DocstringsTest.test_one_line_runs_over_whitespaceI   s<    I  %%i0N+; 	,=r   c           	         R p\         P                  ! V4      p\        R\        RRR7      \        RRR7      .R7      pV P	                  W24       R# )	z_One line description.

    Args:
      arg1: arg1_description
      arg2: arg2_description
    zOne line description.arg1arg1_descriptionnamedescriptionarg2arg2_descriptionr	   argsNr   r   r   ArgInfor   r   s   &   r   test_google_format_args_only+DocstringsTest.test_google_format_args_onlyU   sU    I  %%i0N+'-?@-?@
 	,=r   c                    R p\         P                  ! V4      p\        \        RRR7      .R7      pV P	                  W24       R# )z+
    Args:
      args: arg_description
    r-   arg_descriptionr'   )r-   Nr.   r   s   &   r   !test_google_format_arg_named_args0DocstringsTest.test_google_format_arg_named_argsf   sG    I  %%i0N+->?

 	,=r   c                    R p\         P                  ! V4      p\        RR\        RRRR7      \        RRR	R7      .R
R7      pV P	                  W24       R# )a*  Docstring summary.

    This is a longer description of the docstring. It spans multiple lines, as
    is allowed.

    Args:
        param1 (int): The first parameter.
        param2 (str): The second parameter.

    Returns:
        bool: The return value. True for success, False otherwise.
    Docstring summary.VThis is a longer description of the docstring. It spans multiple lines, as
is allowed.param1intThe first parameter.r(   typer)   param2strThe second parameter.z:bool: The return value. True for success, False otherwise.r	   r)   r-   returnsNr.   r   s   &   r   )test_google_format_typed_args_and_returns8DocstringsTest.test_google_format_typed_args_and_returnss   sj    I  %%i0N+$*  68 79
 M 	,=r   c                    R p\         P                  ! V4      p\        RR\        RRRR7      \        RRR	R7      .R
7      pV P	                  W24       R# )a  Docstring summary.

    This is a longer description of the docstring. It spans multiple lines, as
    is allowed.

    Args:
        param1 (int): The first parameter.
        param2 (str): The second parameter. This has a lot of text, enough to
        cover two lines.
    r7   r8   r9   r:   r;   r<   r>   r?   HThe second parameter. This has a lot of text, enough to cover two lines.r	   r)   r-   Nr.   r   s   &   r   ,test_google_format_multiline_arg_description;DocstringsTest.test_google_format_multiline_arg_description   sf    	I  %%i0N+$*  68!=>
	 	,=r   c                    R p\         P                  ! V4      p\        RR\        RRRR7      \        RRR	R7      .R
RR7      pV P	                  W24       R# )aD  Docstring summary.

    This is a longer description of the docstring. It spans across multiple
    lines.

    :param arg1: Description of arg1.
    :type arg1: str.
    :param arg2: Description of arg2.
    :type arg2: bool.
    :returns:  int -- description of the return value.
    :raises: AttributeError, KeyError
    r7   NThis is a longer description of the docstring. It spans across multiple
lines.r%   r?   Description of arg1.r<   r*   boolDescription of arg2.z'int -- description of the return value.zAttributeError, KeyError)r	   r)   r-   rB   raisesNr.   r   s   &   r   &test_rst_format_typed_args_and_returns5DocstringsTest.test_rst_format_typed_args_and_returns   sl    I  %%i0N+$" e 68f 68
 :) 	,=r   c                    R p\         P                  ! V4      p\        RR\        RRRR7      \        RRR	R7      .R
R7      pV P	                  W24       R# )a:  Docstring summary.

    This is a longer description of the docstring. It spans across multiple
    lines.

    Parameters
    ----------
    param1 : int
        The first parameter.
    param2 : str
        The second parameter.

    Returns
    -------
    bool
        True if successful, False otherwise.
    r7   rK   r9   r:   r;   r<   r>   r?   r@   z)bool True if successful, False otherwise.rA   Nr.   r   s   &   r   (test_numpy_format_typed_args_and_returns7DocstringsTest.test_numpy_format_typed_args_and_returns   si    I"  %%i0N+$"  68 79
 < 	,=r   c                    R p\         P                  ! V4      p\        RR\        RRRR7      \        RRR	R7      .R
7      pV P	                  W24       R# )a&  Docstring summary.

    This is a longer description of the docstring. It spans across multiple
    lines.

    Parameters
    ----------
    param1 : int
        The first parameter.
    param2 : str
        The second parameter. This has a lot of text, enough to cover two
        lines.
    r7   rK   r9   r:   r;   r<   r>   r?   rF   rG   Nr.   r   s   &   r   +test_numpy_format_multiline_arg_description:DocstringsTest.test_numpy_format_multiline_arg_description   sf    I  %%i0N+$"  68!=>
	 	,=r   c                r    R p\         P                  ! V4      p\        RRR7      pV P                  W24       R# )zDocstring summary.

    This is the first section of a docstring description.

    This is the second section of a docstring description. This docstring
    description has just two sections.
    r7   zThis is the first section of a docstring description.

This is the second section of a docstring description. This docstring
description has just two sections.)r	   r)   Nr
   r   s   &   r   test_multisection_docstring*DocstringsTest.test_multisection_docstring  s?    I  %%i0N+$- 	,=r   c                n    R p\         P                  ! V4      pV P                  RVP                  4       R# )ztInspired by requests HTTPAdapter docstring.

    :param x: Simple param.

    Usage:

      >>> import requests
    z+Inspired by requests HTTPAdapter docstring.N)r   r   r   r	   )r   r   r   s   &  r   )test_google_section_with_blank_first_line8DocstringsTest.test_google_section_with_blank_first_line  s5    I  %%i0NB#++-r   c                6    R p\         P                  ! V4       R# )zDocstring summary.

    args: raises ::
    :
    pathological docstrings should not fail, and ideally should behave
    reasonably.
    N)r   r   )r   r   s   & r   test_ill_formed_docstring(DocstringsTest.test_ill_formed_docstring%  s    I Yr   c                `    . ROpR.pV P                  V\        P                  ! V4      4       R# )     foo  N)rb   rc   rb   )r   r   _strip_blank_lines)r   linesexpected_outputs   &  r   test_strip_blank_lines%DocstringsTest.test_strip_blank_lines/  s)    %E kO_j&C&CE&JKr   c                    R p\         P                  ! V4      p\        RR\        RRRR7      \        RRR	R7      \        R
RRR7      .R7      pV P	                  W24       R# )z
     Greets name.

     Arguments
     ---------
     name : str
         name, default : World
     arg2 : int
         arg2, default:None
     arg3 : bool
     zGreets name.Nr(   r?   zname, default : Worldr<   r*   r:   zarg2, default:Nonearg3rM   rG   r.   r   s   &   r   test_numpy_colon_in_description.DocstringsTest.test_numpy_colon_in_description5  sl    
	I  %%i0N+e 79e 46f$?

 	,=r   c                    R p\         P                  ! V4      p\        R\        RRRR7      \	        RRRR7      \	        R	RR
R7      .R7      pV P                  W24       R# )zDocstring summary.

    :param arg1: Description of arg1.
    :type arg1: str.
    :key arg2: Description of arg2.
    :type arg2: bool.
    :key arg3: Description of arg3.
    :type arg3: str.
    r7   r%   r?   rL   r<   r*   rM   rN   rj   zDescription of arg3.r,   N)r   r   r   r/   	KwargInfor   r   s   &   r   %test_rst_format_typed_args_and_kwargs4DocstringsTest.test_rst_format_typed_args_and_kwargsO  sl    I  %%i0N+$e 686"8:6"8:

 	,=r    N)__name__
__module____qualname____firstlineno__r   r   r   r   r"   r0   r4   rC   rH   rP   rS   rV   rY   r\   r_   rg   rk   ro   __static_attributes____classdictcell__)__classdict__s   @r   r   r      sf     >>>>
>>">>8>4>: >D>:>&- L>4> >r   r   __main__N)__doc__firer   r   r   r/   rn   BaseTestCaser   rr   mainrq   r   r   <module>r~      sa    (   ((


  	J>Y++ J>Z
 z.. r   