Uname: Linux premium294.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
Software: LiteSpeed
PHP version: 8.1.32 [ PHP INFO ] PHP os: Linux
Server Ip: 104.21.96.1
Your Ip: 216.73.216.223
User: mjbynoyq (1574) | Group: mjbynoyq (1570)
Safe Mode: OFF
Disable Function:
NONE

name : _next_gen.cpython-37.pyc
B

�>t`��@s�dZddlmZddlmZddlmZddlmZm	Z	m
Z
mZddddddd	dd	dd	d	ddd	ddddd
�dd�ZeZ
eeddd
�Zedddddddd	dddd�dd�ZdS)zr
These are Python 3.6+-only and keyword-only APIs that call `attr.s` and
`attr.ib` with different default values.
�)�partial)�UnannotatedAttributeError�)�setters)�NOTHING�_frozen_setattrs�attrib�attrsNTF)�these�repr�hash�init�slots�frozen�weakref_slot�str�auto_attribs�kw_only�
cache_hash�auto_exc�eq�order�auto_detect�getstate_setstate�
on_setattr�field_transformercsV��������	�
���
�����fdd������fdd�}|dkrJ|S||�SdS)aD
    The only behavioral differences are the handling of the *auto_attribs*
    option:

    :param Optional[bool] auto_attribs: If set to `True` or `False`, it behaves
       exactly like `attr.s`. If left `None`, `attr.s` will try to guess:

       1. If any attributes are annotated and no unannotated `attr.ib`\ s
          are found, it assumes *auto_attribs=True*.
       2. Otherwise it assumes *auto_attribs=False* and tries to collect
          `attr.ib`\ s.

    and that mutable classes (``frozen=False``) validate on ``__setattr__``.

    .. versionadded:: 20.1.0
    cs0t|�����
���|�	�����d��
�d�S)NT)�	maybe_clsr
rrr
rrrrrrrrrrrZcollect_by_mrorrr)r	)�clsr)rrrrrrrrr
rrrrrrr
r��?/opt/alt/python37/lib/python3.7/site-packages/attr/_next_gen.py�do_it5s*zdefine.<locals>.do_itcs��dtjfk}�dkr$�dkr$tj�x,|jD]"}|jtkr,|rFtd��tj�Pq,W�dk	rd�|��Sy
�|d�Stk
r��|d�SXdS)z�
        Making this a wrapper ensures this code runs during class creation.

        We also ensure that frozen-ness of classes is inherited.
        NFz@Frozen classes can't use on_setattr (frozen-ness was inherited).T)rZNO_OP�validate�	__bases__�__setattr__r�
ValueErrorr)rZhad_on_setattrZbase_cls)rr rrrr�wrapMs 


zdefine.<locals>.wrapNr)rr
rrr
rrrrrrrrrrrrrrr%r)rrrrr rrrrrr
rrrrrrr
rr�defines
',%r&)rr)�default�	validatorrrr
�metadata�	converter�factoryrrrrcCs t||||||||||	|
|d�S)zx
    Identical to `attr.ib`, except keyword-only and with some arguments
    removed.

    .. versionadded:: 20.1.0
    )r'r(rrr
r)r*r+rrrr)r)r'r(rrr
r)r*r+rrrrrrr�field|sr,)N)�__doc__�	functoolsrZattr.exceptionsr�r�_makerrrr	r&Zmutablerr,rrrr�<module>sJV
© 2025 XylotrechusZ