hyb
2026-01-30 44480e71b27aa9d4cb8441f50c873f1b110e9691
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
Ë
·^i_@ã ó´—ddlZddlmZddlmZmZmZddlmZe    e
d«e e e eeee
d«e
eeh «Zddeddfd    „Zd
„Zddedfd „Zd „Zd „Z    dd„Zy)éNé)Úget_generic_base)Ú _OBJ_SETATTRÚNOTHINGÚfields)ÚAttrsAttributeNotFoundError.TFc óP‡‡‡‡—t|j«}|«}|D]G}t||j«}    ‰
‰||    «sŒ&‰
‰|||    «}    |durt    |    «}
|
t
vr|    ||j<ŒZt |
«rt|    d‰|‰‰¬«||j<Œ„t|
ttttf«rA‰dur|
nt} |    D cgc]} t| d‰|‰‰¬«‘Œ} }     | | «||j<Œåt|
t«r3|Љˆˆˆˆfd„|    j!«D««||j<Œ(|    ||j<Œ9|    ||j<ŒJ|Scc} w#t$r't| t«s‚| | Ž||j<YŒwxYw)aÅ
    Return the *attrs* attribute values of *inst* as a dict.
 
    Optionally recurse into other *attrs*-decorated classes.
 
    Args:
        inst: Instance of an *attrs*-decorated class.
 
        recurse (bool): Recurse into classes that are also *attrs*-decorated.
 
        filter (~typing.Callable):
            A callable whose return code determines whether an attribute or
            element is included (`True`) or dropped (`False`).  Is called with
            the `attrs.Attribute` as the first argument and the value as the
            second argument.
 
        dict_factory (~typing.Callable):
            A callable to produce dictionaries from.  For example, to produce
            ordered dictionaries instead of normal Python dictionaries, pass in
            ``collections.OrderedDict``.
 
        retain_collection_types (bool):
            Do not convert to `list` when encountering an attribute whose type
            is `tuple` or `set`.  Only meaningful if *recurse* is `True`.
 
        value_serializer (typing.Callable | None):
            A hook that is called for every attribute or dict key/value.  It
            receives the current instance, field and value and must return the
            (updated) value.  The hook is run *after* the optional *filter* has
            been applied.
 
    Returns:
        Return type of *dict_factory*.
 
    Raises:
        attrs.exceptions.NotAnAttrsClassError:
            If *cls* is not an *attrs* class.
 
    ..  versionadded:: 16.0.0 *dict_factory*
    ..  versionadded:: 16.1.0 *retain_collection_types*
    ..  versionadded:: 20.3.0 *value_serializer*
    ..  versionadded:: 21.3.0
        If a dict has a collection for a key, it is serialized as a tuple.
    T©ÚrecurseÚfilterÚ dict_factoryÚretain_collection_typesÚvalue_serializerF©Úis_keyr r rrc
3óh•K—|])\}}t|d‰‰‰‰¬«t|d‰‰‰‰¬«f–—Œ+y­w©TrFN©Ú_asdict_anything©Ú.0ÚkkÚvvÚdfr rrs   €€€€õ^H:\项目\archive\测试组\脚本\Change_password\venv_build\Lib\site-packages\attr/_funcs.pyú    <genexpr>zasdict.<locals>.<genexpr>~sWøèø€ò ñ&˜˜Bô#)ØØ#'Ø#)Ø)+Ø4KØ-=ô ô)ØØ#(Ø#)Ø)+Ø4KØ-=ô ôñ ùóƒ/2)rÚ    __class__ÚgetattrÚnameÚtypeÚ _ATOMIC_TYPESÚhasÚasdictÚ
issubclassÚtupleÚlistÚsetÚ    frozensetrÚ    TypeErrorÚdictÚitems)Úinstr r r rrÚattrsÚrvÚaÚvÚ
value_typeÚcfÚir,rs  ` ``        @rr$r$s¶û€ôh 4—>‘>Ó "€EÙ    ‹€BØ óDˆÜ D˜!Ÿ&™&Ó !ˆØ Ð ¡f¨Q°¤lØ à Ð 'Ù   q¨!Ó,ˆAà dŠ?ܘa›ˆJØœ]Ñ*ؐ1—6‘6’
ܐZ”Ü#ØØ Ø!Ø!-Ø,CØ%5ô 1—6‘6’
ô˜J¬´´c¼9Ð(EÔFØ#:¸dÑ#B‘Z̐ðö
ðô%ØØ$Ø%Ø%1Ø0GØ)9ö ð
ð
ð,Ù!# E£Bq—v‘v’Jô˜J¬Ô-Ø!Ùö ð&#$§'¡'£)ô' ó1—6‘6“
ð,1—6‘6“
àˆBˆqv‰v‹JðIDðJ €Iùò]
øô!ò,Ü% b¬%Ô0Øñ"$ U Bq—v‘v”Jð ,úsÃE0Ã2E5Å5,F%Æ$F%c óô‡‡‡‡
—t|«}|tvr|}‰
‰dd|«}|St|dd«t|d‰|‰‰¬«}|St    |t
t ttf«rG‰dur |j}n|rt
}nt }||D    cgc]}    t|    d‰|‰‰¬«‘Œc}    «}|St    |t«r&|Š
ˆ
ˆˆˆfd„|j«D««}|S|}‰
‰dd|«}|Scc}    w)zK
    ``asdict`` only works on attrs instances, this works on anything.
    NÚ__attrs_attrs__Tr
Frc
3óh•K—|])\}}t|d‰‰‰‰¬«t|d‰‰‰‰¬«f–—Œ+y­wrrrs   €€€€rrz#_asdict_anything.<locals>.<genexpr>ËsWøèø€ò
ñ&Bô#!ØØØ!Ø!#Ø,CØ%5ô ô!ØØ Ø!Ø!#Ø,CØ%5ô ô ñ
ùr) r!r"rr$r%r&r'r(r)rrr+r,) Úvalrr r rrÚval_typer/r3r4rs   ` ``    @rrršsBû€ôC‹y€HØ”=Ñ Ø ˆØ Ð 'Ù! $¨¨bÓ1ˆBðx €Iôw
Ð,¨dÓ    3Р   ?ä Ø ØØØ%Ø$;Ø-ô 
ˆðr €Iôc
Hœu¤d¬C´Ð;Ô    <Ø " dÑ *Ø—‘‰B٠܉BäˆBá ðö
ðô!ØØ Ø!Ø!-Ø,CØ%5ö ò
ó 
ˆðR €Iô9
HœdÔ    #Ø ˆÙ ö
ð&Ÿ)™)›+ô'
ó
ˆð4 €Ið    ˆØ Ð 'Ù! $¨¨bÓ1ˆBà €IùòQ
sÂC5c 󸇇—t|j«}g}|Š|D]n}t||j«}|
|||«sŒ&t    |«}    |dur(|    t
vr|j |«ŒPt|    «r |j t|d|‰‰¬««Œ{t|    ttttf«rc‰dur |jnt}
|D cgc])} t| j«rt| d|‰‰¬«n| ‘Œ+} }     |j |
| ««Œþt|    t«r=‰dur|    nt} |j | ˆˆfd„|j!«D«««ŒK|j |«Œ^|j |«Œq‰tur|S‰|«Scc} w#t$r)t|
t«s‚|j |
| Ž«YŒºwxYw)az
    Return the *attrs* attribute values of *inst* as a tuple.
 
    Optionally recurse into other *attrs*-decorated classes.
 
    Args:
        inst: Instance of an *attrs*-decorated class.
 
        recurse (bool):
            Recurse into classes that are also *attrs*-decorated.
 
        filter (~typing.Callable):
            A callable whose return code determines whether an attribute or
            element is included (`True`) or dropped (`False`).  Is called with
            the `attrs.Attribute` as the first argument and the value as the
            second argument.
 
        tuple_factory (~typing.Callable):
            A callable to produce tuples from. For example, to produce lists
            instead of tuples.
 
        retain_collection_types (bool):
            Do not convert to `list` or `dict` when encountering an attribute
            which type is `tuple`, `dict` or `set`. Only meaningful if
            *recurse* is `True`.
 
    Returns:
        Return type of *tuple_factory*
 
    Raises:
        attrs.exceptions.NotAnAttrsClassError:
            If *cls* is not an *attrs* class.
 
    ..  versionadded:: 16.2.0
    T)r r Ú tuple_factoryrc3ó¸•K—|]Q\}}t|j«rt|‰‰¬«n|t|j«rt|‰‰¬«n|f–—ŒSy­w))r;rN)r#rÚastuple)rrrÚretainr;s   €€rrzastuple.<locals>.<genexpr>Bskøèø€òñ*#˜B ô$' r§|¡|Ô#4ô !(Ø$&Ø2?Ø<Bõ!"ð &(ô$' r§|¡|Ô#4ô !(Ø$&Ø2?Ø<Bõ!"ð &(ô#ñùsƒAA)rrrr r!r"Úappendr#r=r%r&r'r(r)r*r+r,)r-r r r;rr.r/r0r1r2r3Újr,rr>s   `          @rr=r=èsÐù€ôT 4—>‘>Ó "€EØ     €BØ $€FØ óHˆÜ D˜!Ÿ&™&Ó !ˆØ Ð ¡f¨Q°¤lØ Ü˜!“Wˆ
Ø dŠ?Øœ]Ñ*Ø—    ‘    ˜!• ܐZ”Ø—    ‘    ÜØØ $Ø%Ø&3Ø06ô õô˜J¬´´c¼9Ð(EÔFØ$*¨d¡NQ—[’[¼ðö ðô˜qŸ{™{Ô+ô ØØ$(Ø#)Ø*7Ø4:õ ðñð ð ð*Ø—I‘I™b ›iÕ(ô˜J¬Ô-Ø#)¨T¡>‘Z´tØ—    ‘    Ùôð*'(§g¡g£iô+óöð4—    ‘    ˜!– à I‰IaŽLðQHðT¤$Ñ&ˆ2Ð=©M¸"Ó,=Ð=ùòm øô !ò*Ü% b¬%Ô0Øð—I‘I™b %˜j×)ð *úsÃ.F"ÄF'Æ'.GÇGcór—t|dd«}|yt|«}|t|dd«}|||_|duSy)zÊ
    Check whether *cls* is a class with *attrs* attributes.
 
    Args:
        cls (type): Class to introspect.
 
    Raises:
        TypeError: If *cls* is not a class.
 
    Returns:
        bool:
    r6NTF)rrr6)Úclsr.Ú generic_baseÚ generic_attrss    rr#r#bsY€ô CÐ*¨DÓ 1€EØ ÐØô$ CÓ(€LØÐÜ  Ð.?ÀÓFˆ Ø Ð $à"/ˆCÔ Ø DÐ(Ð(Ø óc ó—tj|«}t|j«}|j«D]H\}}t    ||t
«}|t
ur|›d|j›d}t |«‚t|||«ŒJ|S)a×
    Copy *inst* and apply *changes*.
 
    This is different from `evolve` that applies the changes to the arguments
    that create the new instance.
 
    `evolve`'s behavior is preferable, but there are `edge cases`_ where it
    doesn't work. Therefore `assoc` is deprecated, but will not be removed.
 
    .. _`edge cases`: https://github.com/python-attrs/attrs/issues/251
 
    Args:
        inst: Instance of a class with *attrs* attributes.
 
        changes: Keyword changes in the new copy.
 
    Returns:
        A copy of inst with *changes* incorporated.
 
    Raises:
        attrs.exceptions.AttrsAttributeNotFoundError:
            If *attr_name* couldn't be found on *cls*.
 
        attrs.exceptions.NotAnAttrsClassError:
            If *cls* is not an *attrs* class.
 
    ..  deprecated:: 17.1.0
        Use `attrs.evolve` instead if you can. This function will not be
        removed du to the slightly different approach compared to
        `attrs.evolve`, though.
    z is not an attrs attribute on ú.)Úcopyrrr,rrrr)r-ÚchangesÚnewr.Úkr1r0Úmsgs        rÚassocrM~sƒ€ô@ )‰)D‹/€CÜ 4—>‘>Ó "€EØ— ‘ “ò ‰ˆˆ1Ü E˜1œgÓ &ˆØ ”‰<ؐCÐ5°c·m±m°_ÀAÐFˆCÜ-¨cÓ2Ð 2ܐS˜!˜QÕð  ð €JrEcóè—t|dd«|k7raddl}|||dœ}|j|fi|¤Ž}|€ t|«n|D]+}|j|vsŒt |d||j«Œ-||_|S)a‹
    Resolve any strings and forward annotations in type annotations.
 
    This is only required if you need concrete types in :class:`Attribute`'s
    *type* field. In other words, you don't need to resolve your types if you
    only use them for static type checking.
 
    With no arguments, names will be looked up in the module in which the class
    was created. If this is not what you want, for example, if the name only
    exists inside a method, you may pass *globalns* or *localns* to specify
    other dictionaries in which to look up these names. See the docs of
    `typing.get_type_hints` for more details.
 
    Args:
        cls (type): Class to resolve.
 
        globalns (dict | None): Dictionary containing global variables.
 
        localns (dict | None): Dictionary containing local variables.
 
        attribs (list | None):
            List of attribs for the given class. This is necessary when calling
            from inside a ``field_transformer`` since *cls* is not an *attrs*
            class yet.
 
        include_extras (bool):
            Resolve more accurately, if possible. Pass ``include_extras`` to
            ``typing.get_hints``, if supported by the typing module. On
            supported Python versions (3.9+), this resolves the types more
            accurately.
 
    Raises:
        TypeError: If *cls* is not a class.
 
        attrs.exceptions.NotAnAttrsClassError:
            If *cls* is not an *attrs* class and you didn't pass any attribs.
 
        NameError: If types cannot be resolved because of missing variables.
 
    Returns:
        *cls* so you can use this function also as a class decorator. Please
        note that you have to apply it **after** `attrs.define`. That means the
        decorator has to come in the line **before** `attrs.define`.
 
    ..  versionadded:: 20.1.0
    ..  versionadded:: 21.1.0 *attribs*
    ..  versionadded:: 23.1.0 *include_extras*
    Ú__attrs_types_resolved__Nr)ÚglobalnsÚlocalnsÚinclude_extrasr!)rÚtypingÚget_type_hintsrr rrO)    rBrPrQÚattribsrRrSÚkwargsÚhintsÚfields             rÚ resolve_typesrY©s€ôjˆsÐ.°Ó5¸Ò<Ûð!ØØ,ñ
ˆð &×%Ñ% cÑ4¨VÑ4ˆØ$+ O”V˜C”[¸ò    ?ˆE؏z‰z˜UÒ"ä˜U F¨E°%·*±*Ñ,=Õ>ð    ?ð (+ˆÔ$ð €JrE)NNNT)rHÚ_compatrÚ_makerrrÚ
exceptionsrr)r!ÚboolÚintÚfloatÚstrÚcomplexÚbytesÚrangeÚpropertyr"r+r$rr&r=r#rMrY©rErú<module>rfsœðó å%ß0Ñ0Ý3ñá ˆT‹
Ø Ø Ø Ø ØØ Ù ˆS‹    Ø Ø Øð ó€ ð& Ø ØØ!Øó {ò|Kð` Ø ØØ!ó w>òtò8(ðXDHôHrE