� L�g����UdZddlmZddlZddlmZddlmZddlm Z ddlm Z dd lm Z dd lm Z ddd�Z edd��Zded<dd�ZdS)z0Functions for iterating over items in a mapping.�)� annotationsN)� itemgetter�)�KT)�VT)� ItemsIter)�Maplike)� MapOrItems��arg�MapOrItems[KT, VT]�kwr�return�ItemsIter[KT, VT]c+��K�t�tj��r����Ed{V��nDt�t��r'�fd�����D��Ed{V��n�Ed{V��tjtttf|�����Ed{V��dS)z7Yield the items from *arg* and *kw* in the order given.Nc3�,�K�|]}|�|fV��dS)Nr )�.0�kr s ��\/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/bidict/_iter.py� <genexpr>ziteritems.<locals>.<genexpr>s+�����4�4�A�Q��A��K�4�4�4�4�4�4�) � isinstance�t�Mapping�itemsr �keys�castrrr)r rs` r� iteritemsrs�������#�q�y�!�!���9�9�;�;��������� �C�� !� !��4�4�4�4������4�4�4�4�4�4�4�4�4�4�4����������v�i��B��'������4�4�4�4�4�4�4�4�4�4�4rzt.Final�swap�ItemsIter[VT, KT]c��t|dd��}t|��r |��}|Sttt |����S)a;Yield the inverse items of the provided object. If *arg* has a :func:`callable` ``__inverted__`` attribute, return the result of calling it. Otherwise, return an iterator over the items in `arg`, inverting each item on the fly. *See also* :attr:`bidict.BidirectionalMapping.__inverted__` � __inverted__N)�getattr�callable�maprr)r �invattr�invs r�invertedr($sK���c�>�4�0�0�G������!(������ � �t�Y�s�^�^� $� $�$r)r )r r rrrr)r r rr )�__doc__� __future__r�typingr�operatorr�_typingrrrr r rr�__annotations__r(r rr�<module>r/s���7�6�6�"�"�"�"�"�"�����������������������������������������5�5�5�5�5�� �1�a� � �� � � � �%�%�%�%�%�%r
Memory