
    fik                         d dl mZmZ d dlmZ d dlmZmZ 	 d dlm	Z	 d dl
mZ erd dl
mZmZ n# e$ r  ed          w xY w G d d	e          Z G d
 de          ZdS )    )TYPE_CHECKINGAny)add_feature_flag)DidNotEnableIntegration)api)Hook)HookContext	HookHintszOpenFeature is not installedc                   (    e Zd ZdZed             ZdS )OpenFeatureIntegrationopenfeaturec                  J    t          j        t                      g           d S )N)hooks)r   	add_hooksOpenFeatureHook     s/var/www/html/Pagina-Ingenieria-Requisitos/venv/lib/python3.11/site-packages/sentry_sdk/integrations/openfeature.py
setup_oncez!OpenFeatureIntegration.setup_once   s&     	_../000000r   N)__name__
__module____qualname__
identifierstaticmethodr   r   r   r   r   r      s2        J1 1 \1 1 1r   r   c                       e Zd Zd Zd ZdS )r   c                 r    t          |j        t                    rt          |j        |j                   d S d S N)
isinstancevalueboolr   flag_key)selfhook_contextdetailshintss       r   afterzOpenFeatureHook.after   s;    gmT** 	>W-w}=====	> 	>r   c                 r    t          |j        t                    rt          |j        |j                   d S d S r   )r   default_valuer!   r   r"   )r#   r$   	exceptionr&   s       r   errorzOpenFeatureHook.error    s@    l0$77 	P\2L4NOOOOO	P 	Pr   N)r   r   r   r'   r+   r   r   r   r   r      s7        > > >
P P P P Pr   r   N)typingr   r   sentry_sdk.feature_flagsr   sentry_sdk.integrationsr   r   r   r   openfeature.hookr	   r
   r   ImportErrorr   r   r   r   r   <module>r1      s%   % % % % % % % % 5 5 5 5 5 5 = = = = = = = =7%%%%%% <;;;;;;;; 7 7 7
,5
6
6671 1 1 1 1[ 1 1 1	P 	P 	P 	P 	Pd 	P 	P 	P 	P 	Ps	   / A 