⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.30
Server IP:
45.79.8.107
Server:
Linux localhost 5.15.0-140-generic #150-Ubuntu SMP Sat Apr 12 06:00:09 UTC 2025 x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.2-1ubuntu2.21
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3
/
dist-packages
/
attr
/
__pycache__
/
View File Name :
_next_gen.cpython-310.pyc
o ` @ s d Z ddlmZ ddlmZ ddlmZ ddlmZm Z m Z mZ ddddddd dd dd d ddd ddddd ddZeZ eeddd Zedddddddd ddddddZdS )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_setattrsattribattrsNTF)thesereprhashinitslotsfrozenweakref_slotstrauto_attribskw_only cache_hashauto_exceqorderauto_detectgetstate_setstate on_setattrfield_transformerc sR fdd fdd}| du r%|S || S )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 c s t di d| ddddd ddd d |d dd ddd dddd dS )N maybe_clsr r r r r r r r r r r r r r r Zcollect_by_mroTr r r )r )clsr )r r r r r r r r r r r r r r r r r r 0/usr/lib/python3/dist-packages/attr/_next_gen.pydo_it5 sR zdefine.
.do_itc s dt jfv}du rdu rt j| jD ]}|jtu r'|r"tdt j nq dur1| S z| dW S tyE | d Y S w )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)r ZNO_OPZvalidate __bases____setattr__r ValueErrorr )r Zhad_on_setattrZbase_cls)r r r r r r wrapM s&