�
J�gZ �
�| � d Z ddlZddlZddlmZmZ dededefd�Zdedededeegef fd �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 � � ��� t dt f�� �fd�� � }|j dt ddf�� �fd�� � }|S )zWAlias one attribute name to another for backward compatibility
:meta private:
�returnc �p �� t j d�� d�� d�� d�t d�� � t | �� � S )�:meta private:zAccess to deprecated property �. (Replaced by �) -- Deprecated since version �.� ��
stacklevel��warnings�warn�DeprecationWarning�getattr)�selfr r r s ����`/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/bs4/_deprecation.py�aliasz _deprecated_alias.<locals>.alias sU �� � �
�x�X�x�x�h�x�x�nu�x�x�x���
�
�
�
�
�t�X�&�&�&� �valueNc �r �� t j d�� d�� d�� d�t d�� � t | �|� � S )r zWrite to deprecated property r r
r r r )r r r �setattr)r r r r r s ���r r z _deprecated_alias.<locals>.alias&