Skip to content

Commit 2531e8c

Browse files
committed
fix mypy
1 parent dbf3c05 commit 2531e8c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

sentry_sdk/feature_flags.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import copy
22
import sentry_sdk
33
from sentry_sdk._lru_cache import LRUCache
4+
from sentry_sdk.tracing import Span
45
from threading import Lock
56

67
from typing import TYPE_CHECKING, Any
@@ -61,5 +62,5 @@ def add_feature_flag(flag: str, result: bool) -> None:
6162
flags.set(flag, result)
6263

6364
span = sentry_sdk.get_current_span()
64-
if span:
65+
if span and isinstance(span, Span):
6566
span.set_flag(f"flag.evaluation.{flag}", result)

0 commit comments

Comments
 (0)