+
    i	                        ^ RI Ht ^ RIt^ RIt^ RIt^ RIt^ RItR tR tR t	]P                  ! 4       t]P                  ! 4       R 4       tR# )    )annotationsNc                   a  V 3R lpV# )z/A decorator to set the docstring of a function.c                   < SV n         V # N)__doc__)fdocs   &s/Users/igloo/.openclaw/workspace/scratch/fb_ad_env/lib/python3.14/site-packages/google/generativeai/string_utils.pyinnerset_doc.<locals>.inner   s    	     )r	   r   s   f r
   set_docr      s     Lr   c                    V P                  4       pV Uu. uF  pR V9  g   K  VNK  	  ppV Uu. uF  pRV9  g   K  VNK  	  ppRP                  V4      # u upi u upi )z
.. _oneof:z"This field is a member of `oneof`_
)
splitlinesjoin)	docstringlineslines   &  r
   strip_oneofr   "   sd      "E#@ed|4'?TTeE@#Xed'KSW'WTTeEX99U AXs   	AA	AAc                2    \         V n        \         V n        V # r   )_prettyprint__str____repr__)clss   &r
   prettyprintr   )   s    CKCLJr   c                   . p\         P                  ! V 4       EF:  p\        P                  ! \	        WP
                  4      4      pRpVP                  R4      ^
8  d   VP                  R4      '       d   RpMVP                  R4      '       d   RpM\        P                  ! WC\        P                  R7      '       d*   \        P                  ! VRV\        P                  R7      pMLR	pMI\        VP
                  4      ^,           p\        P                  ! VR
V,          4      P                  R
4      pVP!                  VP
                   RV 24       EK=  	  RP#                  V4      pV P$                  P&                  p\        V4      ^,           p\        P                  ! VR
V,          4      P                  R
4      pV RV R2# )a?  A dataclass prettyprint function you can use in __str__or __repr__.

Note: You can't set `__str__ = pprint.pformat` because it causes a recursion error.

Mostly identical to pprint but:

* This will contract long lists and dicts (> 10lines) to [...] and {...}.
* This will contract long object reprs to ClassName(...).
z^(\w+)\(.*\)$r   [z[...]{z{...})flagsz\1(...)z... =z,
())dataclassesfieldspprintpformatgetattrnamecount
startswithrematchDOTALLsublentextwrapindentlstripappendr   	__class____name__)selfr'   r   sclass_rewidthattrsr+   s   &       r
   r   r   2   sL    F%NN7401#774=B||C  c""(RYY77FF8Z"))DK!OE3;/66s;A!o& &  JJvE>>""DIMEOOE3;/66s;EV1UG1r   )
__future__r   r&   r(   r.   reprlibr3   r   r   r   Reprreprrecursive_reprr   r   r   r
   <module>rC      sR    #   	   ||~ 	! !r   