Ë
    œÐVhý  ã                   ój   — d Z ddlZddlmZmZ ddlmZ ddlmZ ej                   G d„ d«      «       Z
y)	aÑ  Hook system for Dynamo's guard functionality.

This module provides a way to register callback functions that are triggered during
guard-related operations.

The Hooks class manages two types of hook functions:
- guard_export_fn: Called when guards need to be exported, taking a GuardsSet as input
- guard_fail_fn: Called when a guard check fails, taking a GuardFail object as input

These hooks enable customization of guard export and failure handling behaviors.
é    N)ÚCallableÚOptional)Ú	GuardsSeté   )Ú	GuardFailc                   óN   — e Zd ZU dZeeegdf      ed<   dZeee	gdf      ed<   y)ÚHooksNÚguard_export_fnÚguard_fail_fn)
Ú__name__Ú
__module__Ú__qualname__r
   r   r   r   Ú__annotations__r   r   © ó    úC/home/dcms/DCMS/lib/python3.12/site-packages/torch/_dynamo/hooks.pyr	   r	      s8   … à=A€OX˜h¨	 {°DÐ'8Ñ9Ñ:ÓAØ;?€M8˜H i [°$Ð%6Ñ7Ñ8Ô?r   r	   )Ú__doc__ÚdataclassesÚtypingr   r   Útorch._guardsr   Útypesr   Ú	dataclassr	   r   r   r   ú<module>r      s:   ðñ
ó ß %å #å ð ×Ñ÷@ð @ó ñ@r   