
    ghk                         S SK JrJr  S SKJr  S SKJrJr   S SKJ	r	  S SK
Jr  \(       a  S SK
JrJr   " S S	\5      r " S
 S\5      rg! \ a	    \" S5      ef = f)    )TYPE_CHECKINGAny)add_feature_flag)DidNotEnableIntegration)api)Hook)HookContext	HookHintszOpenFeature is not installedc                   (    \ rS rSrSr\S 5       rSrg)OpenFeatureIntegration   openfeaturec                  >    [         R                  " [        5       /S9  g )N)hooks)r   	add_hooksOpenFeatureHook     f/home/kali/devsecops-assessor/venv/lib/python3.13/site-packages/sentry_sdk/integrations/openfeature.py
setup_once!OpenFeatureIntegration.setup_once   s     	_./0r   r   N)__name__
__module____qualname____firstlineno__
identifierstaticmethodr   __static_attributes__r   r   r   r   r      s    J1 1r   r   c                        \ rS rSrS rS rSrg)r      c                     [        UR                  [        5      (       a!  [        UR                  UR                  5        g g N)
isinstancevalueboolr   flag_key)selfhook_contextdetailshintss       r   afterOpenFeatureHook.after   s,    gmmT**W--w}}= +r   c                     [        UR                  [        5      (       a!  [        UR                  UR                  5        g g r#   )r$   default_valuer&   r   r'   )r(   r)   	exceptionr+   s       r   errorOpenFeatureHook.error    s0    l00$77\22L4N4NO 8r   r   N)r   r   r   r   r,   r1   r   r   r   r   r   r      s    >
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>r8      sV    % 5 =7%;
1[ 1	Pd 	P  7
5
667s   A
 
A