� M�gQ� �D�ddlZddlZddlZddlZddlmZmZddlmZm Z m Z m Z m Z m Z mZdZddlmZe de eef���ZeegefZe ddd d �d dd ed edefd���Zedd d �d ed ed edefd���Z ddd d �d e ed ed ede eeffd�Ze ddd d �d dd ed edefd���Zedd d �d ed ed edefd���Z ddd d �d e ed ed ede eeffd�Zd ed ed edefd�Zd�Zd�Zdede e efd�Zd�ZdS)�N)� FrameType� FunctionType)�Callable�List�Optional�Tuple�TypeVar�Union�overloadz7.7.0)�ensure_signature_is_compatible�_WrappedMethod)�boundTF��check_signature�check_at_runtime�methodrr�returnc��dS�N��rrrs �c/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/overrides/overrides.py� overridesr � ���C�c��dSrrrs rrr*rrc�`�|�t|||��Stjt||���S)a0Decorator to indicate that the decorated method overrides a method in superclass. The decorator code is executed while loading class. Using this method should have minimal runtime performance implications. How to use: from overrides import overrides class SuperClass(object): def method(self): return 2 class SubClass(SuperClass): @overrides def method(self): return 1 :param check_signature: Whether or not to check the signature of the overridden method. :param check_at_runtime: Whether or not to check the overridden method at runtime. :raises AssertionError: if no match in super classes for the method name :return: method with possibly added (if the method doesn't have one) docstring from super class Nr�� _overrides� functools�partialrrs rrr4�@��<���&�/�3C�D�D�D�� � �+�-� � � � rc��dSrrrs r�overrider$\rrc��dSrrrs rr$r$frrc�`�|�t|||��Stjt||���S)a.Decorator to indicate that the decorated method overrides a method in superclass. The decorator code is executed while loading class. Using this method should have minimal runtime performance implications. How to use: from overrides import override class SuperClass(object): def method(self): return 2 class SubClass(SuperClass): @override def method(self): return 1 :param check_signature: Whether or not to check the signature of the overridden method. :param check_at_runtime: Whether or not to check the overridden method at runtime. :raises AssertionError: if no match in super classes for the method name :return: method with possibly added (if the method doesn't have one) docstring from super class Nrrrs rr$r$pr"rc�����t�dd��t�dd��}|�$ttj�j��}t tjd��|��D]S�t��j ��r<|r%tj ������fd���}|cSt������cS�Tt�j�d����)N� __override__T� __globals__�c�6��t������|i|��Sr)�_validate_method)�args�kwargsrr� super_classs ���r�wrapperz_overrides.<locals>.wrapper�s*���$�V�[�/�J�J�J�!�6�4�2�6�2�2�2rz: No super class method found)�setattr�getattr�vars�sys�modules� __module__�_get_base_classes� _getframe�hasattr�__name__r �wrapsr,� TypeError� __qualname__)rrr� global_varsr0r/s`` @rrr�s�����  �F�N�D�)�)�)��&�-��6�6�K����3�;�v�'8�9�:�:� �(���q�)9�)9�;�G�G� � � � �;��� 0� 0� �� ����(�(�3�3�3�3�3�3�)�(�3����� ���o�F�F�F�� � � � � �v�*�I�I�I� J� J�Jrc��t||j��}ttj||j��t ��}t|dd��rt |j�d|�����|js |j|_|rB|j�d��s*t|t��st|||��dSdSdSdS)N� __final__Fz: is finalized in �__) r2r:� isinstance�inspect�getattr_static� staticmethodr<�__doc__� startswith�propertyr )rr/r� super_method� is_statics rr,r,�s����;���8�8�L����{�F�O�<�<�l���I��|�[�%�0�0�M��6�?�K�K�k�K�K�L�L�L� �>�.�%�-����H���*�*�4�0�0�H��<��2�2�H� '�|�V�Y�G�G�G�G�G� H�H�H�H�H�Hrc�:���fd�t|��D��S)Nc�0��g|]}t|�����Sr)�_get_base_class)�.0�class_name_components� namespaces �r� <listcomp>z%_get_base_classes.<locals>.<listcomp>�s4��� � � � !� �-�y�9�9� � � r)�_get_base_class_names)�framerPs `rr7r7�s6��� � � � �%:�5�%A�%A� � � �rrSc��g}g}d}tj|j��D]�}|j|jkrn�|jtjvr�(|sg}d}|jdvr |r|�|��|j g}�W|jdkr|r|�|j ���|r|�|��g}d}��|r|�|��|S)z(Get baseclass names from the code objectT)� LOAD_NAME� LOAD_GLOBAL� LOAD_ATTRF) �dis�get_instructions�f_code�offset�f_lasti�opcode�hasname�opname�append�argval)rS� current_item�items� add_last_step� instructions rrRrR�s�� �L��E��M��+�E�L�9�9�"�"� � � �� � -� -� �E� � �S�[� 0� 0� �� !��E� �M� � �!=� =� =�� +�� � �\�*�*�*�'�.�/�L�L� � �;� .� .�<� .� � � � � 2� 3� 3� 3� 3�� +�� � �\�*�*�*��L�!�M�M��#� � � �\�"�"�"� �Lrc�8� ||d}n\#t$rOt|dt��r|d|d}nt|d|d��}YnwxYw|dd�D]"}t ||��rt||��}�#|S)Nr� __builtins__�)�KeyErrorrB�dictr2r9)� componentsrP�obj� components rrMrM�s���D�� �1� �&���� �D�D�D� �i��/�� 6� 6� D��N�+�J�q�M�:�C�C��)�N�3�Z��]�C�C�C��� D����  ����^�*�*� � �3� � "� "� *��#�y�)�)�C�� �Js��AA*�)A*r)rXr rCr4�typesrr�typingrrrrr r r � __VERSION__�overrides.signaturer r �_DecoratorMethod�boolrr$rr,r7�strrRrMrrr�<module>rus���" � � � ��������� � � � �)�)�)�)�)�)�)�)�L�L�L�L�L�L�L�L�L�L�L�L�L�L�L�L�L�L�� �>�>�>�>�>�>���)��|�X�7M�1N�O�O�O���^�,�n�<�=�� ���!�"� ��� ����� � � ��� ��� �!�"� ��� ����� � � ��� ���(,�% �!�"� % �% �% � �^� $�% ��% �� % �  � �^� +�,� % �% �% �% �P ���!�"� ��� ����� � � ��� ��� �!�"� ��� ����� � � ��� ���(,�% �!�"� % �% �% � �^� $�% ��% �� % �  � �^� +�,� % �% �% �% �PK� �K��K��K�� K�K�K�K�2H�H�H�"���!��!�t�D��I��!�!�!�!�H � � � � r
Memory