� J�gZ � �|�dZddlZddlZddlmZmZdededefd�Zdedededeegeffd �Zd ededefd �Z dS) a�Helper functions for deprecation. This interface is itself unstable and may change without warning. Do not use these functions yourself, even as a joke. The underscores are there for a reason. No support will be given. In particular, most of this will go away without warning once Beautiful Soup drops support for Python 3.11, since Python 3.12 defines a `@typing.deprecated() decorator. <https://peps.python.org/pep-0702/>`_ �N)�Any�Callable�old_name�new_name�versionc�����tdtf���fd� ��}|jdtddf���fd� ��}|S)zWAlias one attribute name to another for backward compatibility :meta private: �returnc �p��tjd��d��d��d�td���t|���S)�:meta private:zAccess to deprecated property �. (Replaced by �) -- Deprecated since version �.��� stacklevel��warnings�warn�DeprecationWarning�getattr)�selfrrrs ����`/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/bs4/_deprecation.py�aliasz _deprecated_alias.<locals>.aliassU��� � � x�X� x� x�h� x� x�nu� x� x� x� �� � � � � �t�X�&�&�&��valueNc �r��tjd��d��d��d�td���t|�|��S)r zWrite to deprecated property r r rrr)rrr�setattr)rrrrrs ���rrz _deprecated_alias.<locals>.alias&sW��� � � w�H� w� w�X� w� w�mt� w� w� w� �� � � � � �t�X�u�-�-�-r)�propertyr�setter�str�rrrrs``` r�_deprecated_aliasr"s������ �'�s�'�'�'�'�'�'�'��X�'� �\�.�3�.�4�.�.�.�.�.�.�.��\�.� �Lrr c�F����dtdtdtf���fd� }|S)N�args�kwargsr c �|��tjd��d��d��d�td���t|���|i|��S�r zCall to deprecated method r r rrrr)rr$r%rrrs ���rrz)_deprecated_function_alias.<locals>.alias6sb���� � t�� t� t�(� t� t�jq� t� t� t� �� � � � � '�w�t�X�&�&��7��7�7�7r)rr!s``` r�_deprecated_function_aliasr(3sI�����8�3�8�#�8�#�8�8�8�8�8�8�8�8� �Lr� replaced_byc�4���dtdtf��fd� }|S)N�funcr c�x���tj���dtdtdtf���fd� ��}|S)Nr$r%r c �j��tjd�j�d��d��d�td����|i|��Sr')rr�__name__r)r$r%r+r)rs ���r� with_warningz4_deprecated.<locals>.deprecate.<locals>.with_warningDst��� �M�A�T�]�A�A�;�A�A�v}�A�A�A�"�� � � � � �4��(��(�(� (r)� functools�wrapsr)r+r/r)rs` ��r� deprecatez_deprecated.<locals>.deprecateCs^���� ��� � � )�� )�s� )�s� )� )� )� )� )� )� )� � � )��r)r)r)rr2s`` r� _deprecatedr3Bs=���� �� �X� � � � � � � � �r) �__doc__r0r�typingrrr r"r(r3�rr�<module>r7s��� � ����������������� ���s��S�����: �� � � �+.� � �s�e�S�j�� � � � ��S��3��8������r
Memory