+
    rh                     X    R t ^ RIHtHt ^ RItRtRtRtR tR t	R t
R	 R
 ltR R ltR# )zThese decorators provide function metadata to Python Fire.

SetParseFn and SetParseFns allow you to set the functions Fire uses for parsing
command line arguments to client code.
)AnyDictNFIRE_METADATAFIRE_PARSE_FNSACCEPTS_POSITIONAL_ARGSc                   a a VV 3R lpV# )a^  Sets the fn for Fire to use to parse args when calling the decorated fn.

Args:
  fn: The function to be used for parsing arguments.
  *arguments: The arguments for which to use the parse fn. If none are listed,
    then this will set the default parse function.
Returns:
  The decorated function, which now has metadata telling Fire how to perform.
c                    < \        V 4      pS'       g   SVR &   MS F  pSVR,          V&   K  	  \        V \        V4       V # )defaultnamed)GetParseFns_SetMetadatar   )func	parse_fnsargument	argumentsfns   &  1/usr/lib/python3/dist-packages/fire/decorators.py
_DecoratorSetParseFn.<locals>._Decorator'   sD    D!Ii	(')	'8$  ~y1K     )r   r   r   s   fj r   
SetParseFnr      s     
r   c                    a a VV 3R lpV# )a  Set the fns for Fire to use to parse args when calling the decorated fn.

Returns a decorator, which when applied to a function adds metadata to the
function telling Fire how to turn string command line arguments into proper
Python arguments with which to call the function.

A parse function should accept a single string argument and return a value to
be used in its place when calling the decorated function.

Args:
  *positional: The functions to be used for parsing positional arguments.
  **named: The functions to be used for parsing named arguments.
Returns:
  The decorated function, which now has metadata telling Fire how to perform.
c                 z   < \        V 4      pSVR &   VR,          P                  S4       \        V \        V4       V # )
positionalr
   )r   updater   r   )r   r   r
   r   s   & r   r   SetParseFns.<locals>._DecoratorD   s:    BI(Ilge$^Y/Ir   r   )r   r
   r   s   jl r   SetParseFnsr   4   s      
r   c                 F    \        V 4      pW#V&   \        V \        V4       R # )N)GetMetadatasetattrr   )r   	attributevaluemetadatas   &&& r   r   r   N   s    _(9	"mX&r   c                F    V ^8  d   QhR\         \        \        3,          /#    returnr   strr   )formats   "r   __annotate__r+   T   s      tCH~ r   c                    \         \        P                  ! V 4      /p \        V \        V4      p\         V9   d   V# V#    Tu # ; i)zGets metadata attached to the function `fn` as an attribute.

Args:
  fn: The function from which to retrieve the function metadata.
Returns:
  A dictionary mapping property strings to their value.
)r   inspect	isroutinegetattrr   )r   r	   r#   s   &  r   r   r   T   sL     w004'r='2H(*onNs   > > Ac                F    V ^8  d   QhR\         \        \        3,          /# r%   r(   )r*   s   "r   r+   r+   k   s     / /tCH~ /r   c                 T    \        V 4      pR RR. R/ /pVP                  \        V4      # )r	   Nr   r
   )r   getr   )r   r#   r	   s   &  r   r   r   k   s.    _(lB<'	ng	..r   )__doc__typingr   r   r-   r   r   r   r   r   r   r   r   r   r   r   <module>r5      s;     !3 .4'./r   