Skip to content

Commit 8295c22

Browse files
authored
FFM-11655 Fix typing for target attributes in metrics (#97)
1 parent 04ce9c0 commit 8295c22

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

featureflags/analytics.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
MetricsDataMetricsType
2222
from .openapi.metrics.models.target_data import TargetData
2323
from .openapi.metrics.types import Unset
24+
from .openapi.config.types import Unset as ConfigUnset
2425
from .sdk_logging_codes import (info_evaluation_metrics_exceeded,
2526
info_metrics_success,
2627
info_metrics_target_batch_success,
@@ -326,7 +327,7 @@ def process_target_data_batch(self, target_data_batch):
326327

327328
def process_target(self, target_data, unique_target):
328329
target_attributes: List[KeyValue] = []
329-
if not isinstance(unique_target.attributes, Unset):
330+
if not isinstance(unique_target.attributes, ConfigUnset):
330331
for key, value in unique_target.attributes.items():
331332
# Attribute values need to be sent as string to
332333
# ff-server so convert all values to strings.

0 commit comments

Comments
 (0)