File: //usr/local/CyberCP/lib64/python3.10/site-packages/google/auth/__pycache__/_helpers.cpython-310.pyc
o
�h, � @ s� d Z ddlZddlZddlZddlmZ ddlZddlZddlm Z ej
ddd�Zdd � Zd
d� Z
dd
� Zdd� Zd!dd�Zdd� Zd"dd�Zdd� Zdd� Zdd� Zdd� Zdd � ZdS )#z-Helper functions for commonly used utilities.� N)�Message)�
exceptions� �- )�minutes�secondsc s � fdd�}|S )a0 Decorator that copies a method's docstring from another class.
Args:
source_class (type): The class that has the documented method.
Returns:
Callable: A decorator that will copy the docstring of the same
named method in the source class to the decorated method.
c s( | j rt�d��t� | j�}|j | _ | S )a? Decorator implementation.
Args:
method (Callable): The method to copy the docstring to.
Returns:
Callable: the same method passed in with an updated docstring.
Raises:
google.auth.exceptions.InvalidOperation: if the method already has a docstring.
zMethod already has a docstring.)�__doc__r �InvalidOperation�getattr�__name__)�method�
source_method��source_class� �G/usr/local/CyberCP/lib/python3.10/site-packages/google/auth/_helpers.py� decorator* s
z!copy_docstring.<locals>.decoratorr )r r r r r �copy_docstring s r c C s t � }| |d<