o
    i                     @   sF   d dl mZmZ e Zdeeef dedefddZG dd dZd	S )
    )AnyDictglobalsoldnewc                 C   sz   ||f}|t vr9dd l}|  |d |jd| d| dtdd W d    n1 s/w   Y  t | | | S )Nr   alwayszModule `pipecat.services.z'` is deprecated, use `pipecat.services.z
` instead.   )
stacklevel)_warned_moduleswarningscatch_warningssimplefilterwarnDeprecationWarningadd)r   attrr   r   
module_keyr    r   M/home/ubuntu/.local/lib/python3.10/site-packages/pipecat/services/__init__.py_warn_deprecated_access   s   


r   c                   @   s2   e Zd Zdeeef dedefddZdd ZdS )	DeprecatedModuleProxyr   r   r   c                 C   s   || _ || _|| _d S )N)_globals_old_new)selfr   r   r   r   r   r   __init__    s   
zDeprecatedModuleProxy.__init__c                 C   s6   || j v rt| j || j| jS td| j d| d)Nzmodule 'pipecat.services.z' has no attribute '')r   r   r   r   AttributeError)r   r   r   r   r   __getattr__%   s   
z!DeprecatedModuleProxy.__getattr__N)__name__
__module____qualname__r   strr   r   r   r   r   r   r   r      s    r   N)typingr   r   setr
   r"   r   r   r   r   r   r   <module>   s   