Files
intellecton/venv/lib/python3.12/site-packages/requests/__pycache__/structures.cpython-312.pyc
T

55 lines
7.1 KiB
Plaintext
Raw Normal View History

Ë
KÀj&ãóÀ—dZddlmZddlmZddlmZmZmZddl m
Z
m Z m Z m
Z
ddlmZe d«Ze d «ZGd
„d eeefe e«ZGd „d
eeef«Zy)zO
requests.structures
~~~~~~~~~~~~~~~~~~~
Data structures that power Requests.
é)Ú annotations)Ú OrderedDict)ÚIterableÚIteratorÚMapping)ÚAnyÚGenericÚTypeVarÚoverloadé)ÚMutableMappingÚ_VTÚ_Dcóz—eZdZUdZded< d dd„Zdd„Zdd„Zdd„Zdd „Z dd
„Z
dd „Z dd „Z dd
„Z
dd„Zy)ÚCaseInsensitiveDictaÖA case-insensitive ``dict``-like object.
Implements all methods and operations of
``MutableMapping`` as well as dict's ``copy``. Also
provides ``lower_items``.
All keys are expected to be strings. The structure remembers the
case of the last key to be set, and ``iter(instance)``,
``keys()``, ``items()``, ``iterkeys()``, and ``iteritems()``
will contain case-sensitive keys. However, querying and contains
testing is case insensitive::
cid = CaseInsensitiveDict()
cid['Accept'] = 'application/json'
cid['aCCEPT'] == 'application/json' # True
list(cid) == ['Accept'] # True
For example, ``headers['content-encoding']`` will return the
value of a ``'Content-Encoding'`` response header, regardless
of how the header name was originally stored.
If the constructor, ``.update``, or equality comparison
operations are given keys that have equal ``.lower()``s, the
behavior is undefined.
z!OrderedDict[str, tuple[str, _VT]]Ú_storeNc óP—t«|_|€i}|j|fi|¤Žy©N)rrÚupdate)ÚselfÚdataÚkwargss úV/home/antigravity/intellecton/venv/lib/python3.12/site-packages/requests/structures.pyÚ__init__zCaseInsensitiveDict.__init__1s*€ô
"“mˆŒ Ø ˆ<؈D؈� ‰ �DÑ#˜FÓ#ócóB—||f|j|j«<yr©rÚlower)rÚkeyÚvalues rÚ __setitem__zCaseInsensitiveDict.__setitem__;s€ð%(¨ <ˆ� ‰ �C—I‘I“KÒ rcóB—|j|j«dS)Nr r©rrs rÚ __getitem__zCaseInsensitiveDict.__getitem__@s€Ø�{‰{˜3Ÿ9™9›;Ñ'¨Ñ*Ð*rcó:—|j|j«=yrrr#s rÚ __delitem__zCaseInsensitiveDict.__delitem__Cs€Ø �K‰K˜Ÿ ™ › Ñ $rcóD—d„|jj«D«S)Nc3ó&K—|] \}}|–—Œ y­wr©)Ú.0ÚcasedkeyÚ_s rú <genexpr>z/CaseInsensitiveDict.__iter__.<locals>.<genexpr>Gsèø€ÒA™[˜X q”ÑAùs‚)rÚvalues©rs rÚ__iter__zCaseInsensitiveDict.__iter__Fs€ÙA¨D¯K©K×,>Ñ,>Ó,@ÔAÐArcó,—t|j«Sr)Úlenrr/s rÚ__len__zCaseInsensitiveDict.__len__Is€Ü�4—;‘;ÓÐrcóD—d„|jj«D«S)z.Like iteritems(), but with all lowercase keys.c3ó0K—|]\}}||df–—Œy­w)r Nr))r*ÚlowerkeyÚkeyvals rr-z2CaseInsensitiveDict.lower_items.<locals>.<genexpr>Nsèø€ÒTÑ*<¨8°V�˜6 !™9Ô%ÑTùs‚)rÚitemsr/s rÚ lower_itemszCaseInsensitiveDict.lower_itemsLs€áTÀÇ Á ×@QÑ@QÓ@SÔTÐTrcó¬—t|t«r t|«}ntSt |j ««t |j ««k(Sr)Ú
isinstancerrÚNotImplementedÚdictr9)rÚotherÚ
other_dicts rÚ__eq__zCaseInsensitiveDict.__eq__PsC€Ü �eœWÔ %Ü3FÀuÓ3M‰Jä!Ð !ä�D×$Ñ$Ó&Ó'¬4°
×0FÑ0FÓ0HÓ+IÑIÐIrcóH—t|jj««Sr)rrr.r/s rÚcopyzCaseInsensitiveDict.copyYs€Ü" 4§;¡;×#5Ñ#5Ó#7Ó8Ð8rcóF—tt|j«««Sr)Ústrr=r8r/s rÚ__repr__zCaseInsensitiveDict.__repr__\s€Ü”4˜Ÿ
™
› Ó%Ó&Ð&rr)rz4Mapping[str, _VT] | Iterable[tuple[str, _VT]] | NonerrÚreturnÚNone)rrDr rrFrG)rrDrFr)rrDrFrG)rFz
Iterator[str])rFÚint)rFzIterator[tuple[str, _VT]])r>ÚobjectrFÚbool)rFzCaseInsensitiveDict[_VT]©rFrD)Ú__name__Ú
__module__Ú __qualname__Ú__doc__Ú__annotations__rr!r$r&r0r3r9r@rBrEr)rrrrsg…ñð4
.Ó-ðFJð$àBð$ðð$ð
ó $ó0ó
+ó%óBó óUóJó9ô'rrcóz‡—eZdZUdZded<d d ˆfd„
Zd
d„Zdd„Zdd„Ze d dd„«Z
e dd „«Z