a
    *ñ»j
  ã                   @  s    d dl mZ dddœdd„ZdS )é    )ÚannotationsÚobjectÚstr)ÚsourceÚreturnc                 C  sh   | d u rdS zdd l }W n ty,   Y dS 0 | | ¡}|d urXd | ¡ ¡}d|› �S d}d|› d�S )NÚ r   Ú
z
Object allocated at:
zPhttps://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warningszHEnable tracemalloc to get traceback where the object was allocated.
See z for more info.)ÚtracemallocÚImportErrorÚget_object_tracebackÚjoinÚformat)r   r	   ÚtbZformatted_tbÚurl© r   ú9E:\soccer\ml_env\Lib\site-packages\_pytest/tracemalloc.pyÚtracemalloc_message   s    

ÿÿr   N)Ú
__future__r   r   r   r   r   r   Ú<module>   s   