/opt/cloudlinux/venv/lib/python3.11/site-packages/attr/__pycache__
NameSizeModeActions
converters.cpython-311.pyc46640644editdlrm
exceptions.cpython-311.pyc39790644editdlrm
filters.cpython-311.pyc28740644editdlrm
setters.cpython-311.pyc19390644editdlrm
validators.cpython-311.pyc286380644editdlrm
_cmp.cpython-311.pyc50800644editdlrm
_compat.cpython-311.pyc64620644editdlrm
_config.cpython-311.pyc11810644editdlrm
_funcs.cpython-311.pyc165630644editdlrm
_make.cpython-311.pyc1058890644editdlrm
_next_gen.cpython-311.pyc67410644editdlrm
_version_info.cpython-311.pyc36330644editdlrm
__init__.cpython-311.pyc43500644editdlrm
Edit: /opt/cloudlinux/venv/lib/python3.11/site-packages/attr/__pycache__/converters.cpython-311.pyc (4664B)
§ %_qÂÃêþšãóR—dZddlZddlmZddlmZmZmZgd¢Zd„Z edfd„Z d „Z dS) z Commonly useful converters. éNé)Ú_AnnotationExtractor)ÚNOTHINGÚFactoryÚpipe)Údefault_if_noneÚoptionalrÚto_boolcóð‡—ˆfd„}t‰¦«}| ¦«}|rtj||jd<| ¦«}|rtj||jd<|S)aO A converter that allows an attribute to be optional. An optional attribute is one which can be set to ``None``. Type annotations will be inferred from the wrapped converter's, if it has any. :param callable converter: the converter that is used for non-``None`` values. .. versionadded:: 17.1.0 có"•—|€dS‰|¦«S©N©)ÚvalÚ converters €úa/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib/python3.11/site-packages/attr/converters.pyÚoptional_converterz$optional..optional_converter$sø€Ø ˆ;Ø�4؈y˜‰~Œ~ÐórÚreturn)rÚget_first_param_typeÚtypingÚOptionalÚ__annotations__Úget_return_type)rrÚxtrÚtÚrts` rr r s�ø€ðððððõ ˜yÑ )Ô )€Cà × Ò Ñ"Ô"€AØðGÝ4:´OÀAÔ4FÐÔ*¨5Ñ1à × Ò Ñ Ô €BØ ðKÝ7=´ÀrÔ7JÐÔ*¨8Ñ4à Ðrcóþ‡—‰tur|€td¦«‚‰tur|�td¦«‚|�t|¦«Št‰t¦«r‰jrt d¦«‚ˆfd„}nˆfd„}|S)aœ A converter that allows to replace ``None`` values by *default* or the result of *factory*. :param default: Value to be used if ``None`` is passed. Passing an instance of `attrs.Factory` is supported, however the ``takes_self`` option is *not*. :param callable factory: A callable that takes no parameters whose result is used if ``None`` is passed. :raises TypeError: If **neither** *default* or *factory* is passed. :raises TypeError: If **both** *default* and *factory* are passed. :raises ValueError: If an instance of `attrs.Factory` is passed with ``takes_self=True``. .. versionadded:: 18.2.0 Nz(Must pass either `default` or `factory`.z5Must pass either `default` or `factory` but not both.z1`takes_self` is not supported by default_if_none.có4•—|�|S‰ ¦«Sr )Úfactory©rÚdefaults €rÚdefault_if_none_converterz2default_if_none..default_if_none_converterYsø€ØˆØ� à—?’?Ñ$Ô$Ð $rcó•—|�|S‰Sr rr s €rr"z2default_if_none..default_if_none_converterasø€ØˆØ� àˆNr)rÚ TypeErrorrÚ isinstanceÚ takes_selfÚ ValueError)r!rr"s` rrr6sÎø€ð$•'ÐИg˜oÝÐBÑCÔCÐCà•gÐР'Ð"5ÝØ Cñ ô ð ðÐݘ'Ñ"Ô"ˆå�'�7Ñ#Ô#ðØ Ô ð ÝØCñôð ð %ð %ð %ð %ð %ð %ð ð ð ð ð ð %Ð$rcóÄ—t|t¦«r| ¦«}hd£}hd£} ||vrdS||vrdSn#t$rYnwxYwt d|›�¦«‚)a Convert "boolean" strings (e.g., from env. vars.) to real booleans. Values mapping to :code:`True`: - :code:`True` - :code:`"true"` / :code:`"t"` - :code:`"yes"` / :code:`"y"` - :code:`"on"` - :code:`"1"` - :code:`1` Values mapping to :code:`False`: - :code:`False` - :code:`"false"` / :code:`"f"` - :code:`"no"` / :code:`"n"` - :code:`"off"` - :code:`"0"` - :code:`0` :raises ValueError: for any other value. .. versionadded:: 21.3.0 >TÚ1rÚyÚonÚyesÚtrue>FÚ0ÚfÚnÚnoÚoffÚfalseTFzCannot convert value to bool: )r%ÚstrÚlowerr$r')rÚtruthyÚfalsys rr r js˜€õ4�#•sÑÔðØ�iŠi‰kŒkˆØ :Ð :Ð :€FØ ;Ð ;Ð ;€Eð Ø �&ˆ=ˆ=Ø�4Ø �%ˆ<ˆ<Ø�5ð øå ð ð ð à ˆð øøøõ Ð;°cÐ;Ð;Ñ <Ô <Ðr<s ðððð € € € à)Ð)Ð)Ð)Ð)Ð)Ø)Ð)Ð)Ð)Ð)Ð)Ð)Ð)Ð)Ð)ð ð ð €ðððð@$¨Tð1%ð1%ð1%ð1%ðh&=ð&=ð&=ð&=ð&=r