U o^8@s^ddlmZddlmZddlZddlmZddlZGdddZe de d fZ d d Z dS) ) NUMERIC_TYPES) safe_stringN)wrapsc@s eZdZdS) DummyCodeN)__name__ __module__ __qualname__r r r/private/var/folders/sd/whlwsn6x1_qgglc0mjv25_695qk2gl/T/pip-install-4zq3fp6i/openpyxl/openpyxl/compat/__init__.pyr srcsLttrfdd}|Sts.tr8tdntttdS)NcsTtrdndtfdd}d}|jrJ|j|7_n||_|S)Nz+Call to deprecated class {name} ({reason}).z.Call to deprecated function {name} ({reason}).cs&tjjjdtdd||S)N)namereason)category stacklevel)warningswarnformatrDeprecationWarning)argskwargs)fmt1func1rr r new_func1s z0deprecated..decorator..new_func1z .. note:: Deprecated: )inspectisclassr__doc__)rrZdeprecationNoter)rrr decorators  zdeprecated..decoratorz'Reason for deprecation must be supplied) isinstance string_typesrr isfunction TypeErrorreprtype)rr r rr deprecateds    r') Znumbersrstringsrr functoolsrrrr&r"r'r r r r s