Skip to content

Commit 3bcafed

Browse files
committed
Constrain type
1 parent 7d8a37f commit 3bcafed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sentry_sdk/integrations/openfeature.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ def error_processor(event, exc_info):
3535
api.add_hooks(hooks=[OpenFeatureHook()])
3636

3737

38-
class OpenFeatureHook(Hook): # type: ignore
38+
class OpenFeatureHook(Hook):
3939

4040
def after(self, hook_context, details, hints):
41-
# type: (HookContext, FlagEvaluationDetails, HookHints) -> None
41+
# type: (HookContext, FlagEvaluationDetails[bool], HookHints) -> None
4242
if isinstance(details.value, bool):
4343
flags = sentry_sdk.get_current_scope().flags
4444
flags.set(details.flag_key, details.value)

0 commit comments

Comments
 (0)