⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.24
Server IP:
50.6.168.112
Server:
Linux server-617809.webnetzimbabwe.com 5.14.0-570.25.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 9 04:57:09 EDT 2025 x86_64
Server Software:
Apache
PHP Version:
8.4.10
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3.9
/
site-packages
/
attr
/
__pycache__
/
View File Name :
_next_gen.cpython-39.pyc
a Pͣ_* @ s d Z ddlmZ ddlmZ ddlmZ ddlmZm Z m Z mZ ddddddd dd dd d ddd ddddd ddZeZ eeddd Zedddddddd ddddddZdS )z This is a Python 3.6 and later-only, keyword-only, and **provisional** API that calls `attr.s` with different default values. Provisional APIs that shall become "import attrs" one glorious day. )partial)UnannotatedAttributeError )setters)NOTHING_frozen_setattrsattribattrsNTF)thesereprhashinitslotsfrozenweakref_slotstrauto_attribskw_only cache_hashauto_exceqorderauto_detectgetstate_setstate on_setattrfield_transformerc sV fdd fdd}| du rJ|S || S dS )a4 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 all attributes are annotated and no `attr.ib` is 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 s0 t | | d dS )NT) maybe_clsr r r r r r r r r r r r r r r Zcollect_by_mror r r )r )clsr )r r r r r r r r r r r r r r r r r 2/usr/lib/python3.9/site-packages/attr/_next_gen.pydo_it7 s, zdefine.
.do_itc s dt jfv}du r$du r$t j| jD ]$}|jtu r*|rDtdt j qPq* durb| S z| dW S ty | d Y S 0 dS )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 wrapO s" zdefine.
.wrapNr )r r r r r r r r r r r r r r r r r r r r$ r )r r r r r r r r r r r r r r r r r r r r define s ',%r% )r r defaultZ validatorr r r metadataZ converterfactoryr r r r c C s t | ||||||||| | |dS )zx Identical to `attr.ib`, except keyword-only and with some arguments removed. .. versionadded:: 20.1.0 r&