Skip to content

Commit c1861a3

Browse files
authored
Fix mypy (#4649)
1 parent 493ac4b commit c1861a3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

sentry_sdk/integrations/openfeature.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import TYPE_CHECKING
1+
from typing import TYPE_CHECKING, Any
22

33
from sentry_sdk.feature_flags import add_feature_flag
44
from sentry_sdk.integrations import DidNotEnable, Integration
@@ -8,7 +8,6 @@
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
1312
except ImportError:
1413
raise DidNotEnable("OpenFeature is not installed")
@@ -25,9 +24,8 @@ def setup_once():
2524

2625

2726
class 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

0 commit comments

Comments
 (0)