File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 1
- from typing import TYPE_CHECKING
1
+ from typing import TYPE_CHECKING , Any
2
2
3
3
from sentry_sdk .feature_flags import add_feature_flag
4
4
from sentry_sdk .integrations import DidNotEnable , Integration
8
8
from openfeature .hook import Hook
9
9
10
10
if TYPE_CHECKING :
11
- from openfeature .flag_evaluation import FlagEvaluationDetails
12
11
from openfeature .hook import HookContext , HookHints
13
12
except ImportError :
14
13
raise DidNotEnable ("OpenFeature is not installed" )
@@ -25,9 +24,8 @@ def setup_once():
25
24
26
25
27
26
class OpenFeatureHook (Hook ):
28
-
29
27
def after (self , hook_context , details , hints ):
30
- # type: (HookContext, FlagEvaluationDetails[bool], HookHints ) -> None
28
+ # type: (Any, Any, Any ) -> None
31
29
if isinstance (details .value , bool ):
32
30
add_feature_flag (details .flag_key , details .value )
33
31
You can’t perform that action at this time.
0 commit comments