o
    "ir                     @   s~   U d Z ddlmZmZmZmZ ddlmZ ddlm	Z	 edZ
eegef Zeed< 	 de
d	e
fd
dZded	efddZdS )zUseful internal functions.    )AnyCallableNoReturnTypeVar   )	TypeAliasStructureHandlerNotFoundErrorT	Predicateobjreturnc                 C   s   | S )zThe identity function. )r   r   r   J/var/www/html/premium_crap/venv/lib/python3.10/site-packages/cattrs/fns.pyidentity   s   r   clc                 C   s   d|d}t ||d)zGAt the bottom of the condition stack, we explode if we can't handle it.zUnsupported type: z#. Register a structure hook for it.)type_r   )_r   msgr   r   r   raise_error   s   r   N)__doc__typingr   r   r   r   _compatr   errorsr	   r
   boolr   __annotations__r   r   r   r   r   r   <module>   s    