
    nju                    t    S SK Jr  S SKrS SKJrJr  S SKJr  S SKJ	r	  SSK
Jr  \	" S\S	9r\" 5       S
 5       rg)    )annotationsN)	dataclassfields)wraps)TypeVar   )dataclass_transform_T)boundc                 <   ^  [        [        5      SU 4S jj5       nU$ )a  
Build a dataclass whose ``__init__`` ignores unknown keyword arguments.

Customize ``__init__`` to preserve backwards compatibility and keep
tolerating arbitrary keywords, but keep the dataclass-generated
``__init__`` to avoid redefining the typing for all the arguments.

Drop this customization once lenient behaviour and backward
compatibility are no longer needed and use a regular ``dataclass``
instead.
c                   >^ ^^ [        S0 TD6" T 5      m [        S [        T 5       5       5      mT R                  m[	        T5      U UU4S j5       nUT l        T $ )Nc              3  8   #    U  H  oR                   v   M     g 7f)N)name).0fs     \/var/www/html/pdf-tiff/venv/lib/python3.13/site-packages/setuptools/_distutils/_dataclass.py	<genexpr>3lenient_dataclass.<locals>._wrap.<locals>.<genexpr>    s     1[VV[s   c                  > [        U5       Vs0 s H%  o3T;  d  M
  [        U5      UR                  U5      _M'     nnU(       a8  ST	R                   SSR	                  U5       S3n[
        R                  " U5        [        TUSS9 VVs0 s H  u  p6Uc  M
  X6_M     nnnUR                  5        VVs0 s H  u  p6Uc  M
  X6_M     nnnT
" U 40 UDUD6$ s  snf s  snnf s  snnf )Nz(
                Please remove unknown `z` options: ,zf
                this kind of usage is deprecated and may cause errors in the future.
                F)strict)	tuplereprpop__name__joinwarningswarnzipitems)selfargskwargskextramsgv
positionalkeywordscls	orig_initsafes            r   _wrapped_init7lenient_dataclass.<locals>._wrap.<locals>._wrapped_init#   s    5:6]T]tm+T!Wfjjm+]ET((+~[%@Q R c" "%T4!>!>!!>   *0I1HIT<Z<8<< U Js"   	CC
	CC3	C C )r   r   r   __init__r   )r*   r-   r+   r,   	dc_kwargss   ` @@r   _wrap lenient_dataclass.<locals>._wrap   sW    $)$S)1VC[11LL		y		= 
	=  %
    )r*   r
   returnr
   )r   r   )r1   r2   s   ` r   lenient_dataclassr6      s#     9 4 Lr4   )
__future__r   r   dataclassesr   r   	functoolsr   typingr   compat.py310r	   typer
   r6   r/   r4   r   <module>r=      s:    "  )   -T ( (r4   