o
    ?e                     @   s$   d Z ddlZddlmZ dd ZdS )zKeyword args functions.    N)decorator_utilsc                    s&   t  d t  fdd}|S )a  Decorator for marking specific function accepting keyword args only.

  This decorator raises a `ValueError` if the input `func` is called with any
  non-keyword args. This prevents the caller from providing the arguments in
  wrong order.

  Args:
    func: The function or method needed to be decorated.

  Returns:
    Decorated function or method.

  Raises:
    ValueError: If `func` is not callable.
  keyword_args_onlyc                     s(   | rt d j d|   di |S )zKeyword args only wrapper.zThe function zp only accepts keyword arguments. Do not pass positional arguments. Received the following positional arguments: N )
ValueError__name__)argskwargsfuncr   d/home/www/facesmatcher.com/pyenv/lib/python3.10/site-packages/tensorflow/python/util/keyword_args.pynew_func)   s   
z#keyword_args_only.<locals>.new_func)r   Zvalidate_callable	functoolswraps)r
   r   r   r	   r   r      s   r   )__doc__r   Ztensorflow.python.utilr   r   r   r   r   r   <module>   s   