⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.144
Server IP:
157.245.143.252
Server:
Linux www 6.11.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 14 13:19:59 UTC 2024 x86_64
Server Software:
nginx/1.26.0
PHP Version:
8.3.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
lib
/
python3
/
dist-packages
/
attr
/
__pycache__
/
View File Name :
_next_gen.cpython-312.pyc
e; d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl mZmZm Z mZmZ ddlmZ dd d d d d d dd dd ddd d dd d d d d dd ZeZ eed d Zed d d d d d d d dd d d d ddZd d d ddZd d ddZy )z] These are keyword-only APIs that call `attr.s` and `attr.ib` with different default values. )partial )setters)asdict)astuple)NOTHING_frozen_setattrs_ng_default_on_setattrattribattrs)UnannotatedAttributeErrorNTF)thesereprunsafe_hashhashinitslotsfrozenweakref_slotstrauto_attribskw_only cache_hashauto_exceqorderauto_detectgetstate_setstate on_setattrfield_transformer match_argsc fd fd}| |S || S )a Define an *attrs* class. Differences to the classic `attr.s` that it uses underneath: - Automatically detect whether or not *auto_attribs* should be `True` (c.f. *auto_attribs* parameter). - Converters and validators run when attributes are set by default -- if *frozen* is `False`. - *slots=True* .. caution:: Usually this has only upsides and few visible effects in everyday programming. But it *can* lead to some surprising behaviors, so please make sure to read :term:`slotted classes`. - *auto_exc=True* - *auto_detect=True* - *order=False* - Some options that were only relevant on Python 2 or were kept around for backwards-compatibility have been removed. Please note that these are all defaults and you can change them as you wish. :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 `attrs.fields`\ s are found, it assumes *auto_attribs=True*. 2. Otherwise it assumes *auto_attribs=False* and tries to collect `attrs.fields`\ s. For now, please refer to `attr.s` for the rest of the parameters. .. versionadded:: 20.1.0 .. versionchanged:: 21.3.0 Converters are also run ``on_setattr``. .. versionadded:: 22.2.0 *unsafe_hash* as an alias for *hash* (for :pep:`681` compliance). c t di d| ddd dd ddd d d|dd dddddddd ddS )N maybe_clsr r r r r r r r r r r r r r r r collect_by_mroTr r r r! )r )clsr r r r r r r r r r r r! r r r r r r r r s 0/usr/lib/python3/dist-packages/attr/_next_gen.pydo_itzdefine.
.do_itY s $ & & " ! " $# $ % &