Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
structures.cpython-313.pyc54 linesDownload Raw Back to __pycache__
1�

2��j&����SrSSKJr SSKJr SSKJrJrJr SSK	J3r4JrJrJ
r
 SSKJr \"S5r\"S	5r"S5S\\\4\\5r"SS
\\\45rg)zO6requests.structures7~~~~~~~~~~~~~~~~~~~8 9Data structures that power Requests.10�)�annotations)�OrderedDict)�Iterable�Iterator�Mapping)�Any�Generic�TypeVar�overload�)�MutableMapping�_VT�_Dc��\rSrSr%SrS\S'SSSjjrSSjrSSjrSS	jr	SS11jr12SSjrSSjrSS
jr
SSjrSSjrSrg)�CaseInsensitiveDict�a�A case-insensitive ``dict``-like object.13 14Implements all methods and operations of15``MutableMapping`` as well as dict's ``copy``. Also16provides ``lower_items``.17 18All keys are expected to be strings. The structure remembers the19case of the last key to be set, and ``iter(instance)``,20``keys()``, ``items()``, ``iterkeys()``, and ``iteritems()``21will contain case-sensitive keys. However, querying and contains22testing is case insensitive::23 24    cid = CaseInsensitiveDict()25    cid['Accept'] = 'application/json'26    cid['aCCEPT'] == 'application/json'  # True27    list(cid) == ['Accept']  # True28 29For example, ``headers['content-encoding']`` will return the30value of a ``'Content-Encoding'`` response header, regardless31of how the header name was originally stored.32 33If the constructor, ``.update``, or equality comparison34operations are given keys that have equal ``.lower()``s, the35behavior is undefined.36z!OrderedDict[str, tuple[str, _VT]]�_storeNc�R�[5UlUc0nUR"U40UD6 g�N)rr�update)�self�data�kwargss   �YD:\code\apps\devtools\python\user_packages\Python313\site-packages\requests/structures.py�__init__�CaseInsensitiveDict.__init__1s(��37"�m����<��D����D�#�F�#�c�@�X4URUR5'gr�r�lower)r�key�values   r�__setitem__�CaseInsensitiveDict.__setitem__;s��%(�<����C�I�I�K� rc�B�URUR5S$)Nrr�rr!s  r�__getitem__�CaseInsensitiveDict.__getitem__@s���{�{�3�9�9�;�'��*�*rc�:�URUR5	grrr&s  r�__delitem__�CaseInsensitiveDict.__delitem__Cs���K�K��	�	��$rc�D�SURR55$)Nc3�*# �UH	upUv� M g7fr�)�.0�casedkey�_s   r�	<genexpr>�/CaseInsensitiveDict.__iter__.<locals>.<genexpr>Gs���A�,@�[�X��,@�s�)r�values�rs r�__iter__�CaseInsensitiveDict.__iter__Fs��A�D�K�K�,>�,>�,@�A�Arc�,�[UR5$r)�lenrr5s r�__len__�CaseInsensitiveDict.__len__Is���4�;�;��rc�D�SURR55$)z.Like iteritems(), but with all lowercase keys.c3�2# �UH
upXS4v� M g7f)rNr.)r/�lowerkey�keyvals   rr2�2CaseInsensitiveDict.lower_items.<locals>.<genexpr>Ns���T�@S�*<�8��!�9�%�@S�s�)r�itemsr5s r�lower_items�CaseInsensitiveDict.lower_itemsLs��T����@Q�@Q�@S�T�Trc��[U[5(a[U5nO[$[	UR55[	UR55:H$r)�38isinstancerr�NotImplemented�dictrB)r�other�39other_dicts   r�__eq__�CaseInsensitiveDict.__eq__PsF���e�W�%�%�3F�u�3M�J�!�!��D�$�$�&�'�4�40�0F�0F�0H�+I�I�Irc�H�[URR55$r)rrr4r5s r�copy�CaseInsensitiveDict.copyYs��"�4�;�;�#5�#5�#7�8�8rc�F�[[UR555$r)�strrGrAr5s r�__repr__�CaseInsensitiveDict.__repr__\s���4��41�42��%�&�&r)rr)rz4Mapping[str, _VT] | Iterable[tuple[str, _VT]] | Nonerr�return�None)r!rPr"rrSrT)r!rPrSr)r!rPrSrT)rSz
Iterator[str])rS�int)rSzIterator[tuple[str, _VT]])rH�objectrS�bool)rSzCaseInsensitiveDict[_VT]�rSrP)�__name__�43__module__�__qualname__�__firstlineno__�__doc__�__annotations__rr#r'r*r6r:rBrJrMrQ�__static_attributes__r.rrrrsg���4
.�-�FJ�$�B�$��$�44�	$�0�45+�%�B� �U�J�9�'rrc�^�\rSrSr%SrS\S'S
SU4SjjjrSSjrSSjrSSjr	\46S
SS	jj5r\47SS48j5rS
SSjjrSrU=r
$)�49LookupDict�`zDictionary lookup object.r�namec�.>�Xl[TU]	5 gr)rc�superr)rrc�	__class__s  �rr�LookupDict.__init__es����	�
���rc�"�SURS3$)Nz	<lookup 'z'>�rcr5s rrQ�LookupDict.__repr__is���4�9�9�+�R�(�(rc��XR;aURU$[S[U5RSUS35e)N�'z' object has no attribute ')�__dict__�AttributeError�typerYr&s  r�__getattr__�LookupDict.__getattr__lsH���-�-���=�=��%�%� ��D��J�'�'�(�(C�C�5��J��
rc�:�URRUS5$r�rm�getr&s  rr'�LookupDict.__getitem__vs���}�}� � ��d�+�+rc��grr.�rr!�defaults   rrt�LookupDict.get{s��ADrc��grr.rws   rrtry~s��<?rc�8�URRX5$rrsrws   rrtry�s���}�}� � ��.�.rrir)rcrrSrTrX)r!rPrS�50_VT | None)r!rPrxrTrSr|)r!rPrx�_D | _VTrSr})r!rPrxz	_D | NonerSz_VT | _D | None)rYrZr[r\r]r^rrQrpr'rrtr_�
__classcell__)rfs@rrara`sL���#�51
�I���)��,�52�D��D�
�?��?�/�/rraN)r]�53__future__r�collectionsr�collections.abcrrr�typingrr	r54r�compatr
rrrPrrGrar.rr�<module>r�se���#�#�7�7�2�2�"�
�e�n���T�]��I'�.��c��2�G�C�L�I'�X"/��c�3�h��"/r
codekingpro/portable-devtools · Team Ai