U
    d8                     @   s^   d dl mZ d dlmZ ddlZddlmZ ddlZG dd dZe	de	d	fZ
d
d ZdS )   )NUMERIC_TYPES)safe_string    N)wrapsc                   @   s   e Zd ZdS )	DummyCodeN)__name__
__module____qualname__ r
   r
   </tmp/pip-unpacked-wheel-rwywncvq/openpyxl/compat/__init__.pyr      s   r        c                    sL   t  tr fdd}|S t s.t r8tdnttt d S )Nc                    sT   t rd nd t fdd}d }|jrJ| j|7  _n||_|S )Nz+Call to deprecated class {name} ({reason}).z.Call to deprecated function {name} ({reason}).c                     s&   t j jjdtdd | |S )N)namereason   )category
stacklevel)warningswarnformatr   DeprecationWarning)argskwargs)fmt1func1r   r
   r   	new_func1   s    z0deprecated.<locals>.decorator.<locals>.new_func1z

.. note::
    Deprecated: )inspectisclassr   __doc__)r   r   ZdeprecationNoter   )r   r   r   	decorator   s    

zdeprecated.<locals>.decoratorz'Reason for deprecation must be supplied)
isinstancestring_typesr   r   
isfunction	TypeErrorreprtype)r   r    r
   r   r   
deprecated   s    

r'   )Znumbersr   stringsr   r   	functoolsr   r   r   r&   r"   r'   r
   r
   r
   r   <module>   s   