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
22
33from sentry_sdk .feature_flags import add_feature_flag
44from sentry_sdk .integrations import DidNotEnable , Integration
88 from openfeature .hook import Hook
99
1010 if TYPE_CHECKING :
11- from openfeature .flag_evaluation import FlagEvaluationDetails
1211 from openfeature .hook import HookContext , HookHints
1312except ImportError :
1413 raise DidNotEnable ("OpenFeature is not installed" )
@@ -25,9 +24,8 @@ def setup_once():
2524
2625
2726class OpenFeatureHook (Hook ):
28-
2927 def after (self , hook_context , details , hints ):
30- # type: (HookContext, FlagEvaluationDetails[bool], HookHints ) -> None
28+ # type: (Any, Any, Any ) -> None
3129 if isinstance (details .value , bool ):
3230 add_feature_flag (details .flag_key , details .value )
3331
You can’t perform that action at this time.
0 commit comments