zmc
2023-12-22 9fdbf60165db0400c2e8e6be2dc6e88138ac719a
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
U
L±d¾ã@s,dZddlmZdd„Zdd„Zdd„Zd    S)
z,
Commonly useful filters for `attr.asdict`.
é)Ú    AttributecCs4tdd„|Dƒƒtdd„|Dƒƒtdd„|DƒƒfS)zD
    Returns a tuple of `frozenset`s of classes and attributes.
    css|]}t|tƒr|VqdS©N)Ú
isinstanceÚtype©Ú.0Úcls©r    úCd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\attr/filters.pyÚ    <genexpr>s
z_split_what.<locals>.<genexpr>css|]}t|tƒr|VqdSr)rÚstrrr    r    r
r s
css|]}t|tƒr|VqdSr)rrrr    r    r
r s
)Ú    frozenset)Úwhatr    r    r
Ú _split_what
sýrcs"t|ƒ\‰‰‰‡‡‡fdd„}|S)zñ
    Include *what*.
 
    :param what: What to include.
    :type what: `list` of classes `type`, field names `str` or
        `attrs.Attribute`\ s
 
    :rtype: `callable`
 
    .. versionchanged:: 23.1.0 Accept strings with field names.
    cs|jˆkp|jˆkp|ˆkSr©Ú    __class__Úname©Ú    attributeÚvalue©ÚattrsrÚnamesr    r
Úinclude_#s
 
ÿýzinclude.<locals>.include_©r)rrr    rr
Úincludes rcs"t|ƒ\‰‰‰‡‡‡fdd„}|S)zü
    Exclude *what*.
 
    :param what: What to exclude.
    :type what: `list` of classes `type`, field names `str` or
        `attrs.Attribute`\ s.
 
    :rtype: `callable`
 
    .. versionchanged:: 23.3.0 Accept field name string as input argument
    cs|jˆkp|jˆkp|ˆk Srrrrr    r
Úexclude_;s
 
ÿýzexclude.<locals>.exclude_r)rrr    rr
Úexclude-s rN)Ú__doc__Ú_makerrrrr    r    r    r
Ú<module>s