o
    Ô2úh«  ã                   @   sn   d Z ddlmZmZ ddlZddlmZmZ ddl	m
Z
 edƒZdedee f d	edee f fd
d„ZdS )z9TFDecorator-aware replacements for the contextlib module.é    )ÚCallableÚIteratorN)ÚContextManagerÚTypeVar)Útf_decoratorÚ_TÚtarget.Úreturnc                 C   s   t  | ¡}t | |d¡S )a  A tf_decorator-aware wrapper for `contextlib.contextmanager`.

  Usage is identical to `contextlib.contextmanager`.

  Args:
    target: A callable to be wrapped in a contextmanager.
  Returns:
    A callable that can be used inside of a `with` statement.
  Úcontextmanager)Ú_contextlibr
   r   Úmake_decorator)r   Úcontext_manager© r   ú_/var/www/html/chatgem/venv/lib/python3.10/site-packages/tensorflow/python/util/tf_contextlib.pyr
      s   
r
   )Ú__doc__Úcollections.abcr   r   Ú
contextlibr   Útypingr   r   Útensorflow.python.utilr   r   r
   r   r   r   r   Ú<module>   s   ÿþ