File: //opt/cppython/lib/python3.8/site-packages/proto/__pycache__/utils.cpython-38.pyc
U
JD�gs � @ s d dl Z dd� Zdd� ZdZdS )� Nc C s2 zddl m} d}W n tk
r, d}Y nX |S )Nr )�_messageTF)Zgoogle._upbr �ImportError)r �has_upb� r �8/opt/cppython/lib/python3.8/site-packages/proto/utils.pyr s
r c s t �� �� fdd��}t|�S )z�Make the callable into a cached property.
Similar to @property, but the function will only be called once per
object.
Args:
fx (Callable[]): The property function.
Returns:
Callable[]: The wrapped function.
c s@ t | d�st�| di � � j| jkr4� | �| j� j<