Skip to content

Commit 35307fd

Browse files
committed
lint
1 parent d72dfc9 commit 35307fd

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

example/openfeature_example.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def main():
8989
logger.info("=" * 60)
9090

9191
# Test String Variable
92-
string_details = open_feature_client.get_string_details(
92+
open_feature_client.get_string_details(
9393
"test-string-variable", "default string", context
9494
)
9595
logger.info("Variable Key: test-string-variable")
@@ -101,7 +101,7 @@ def main():
101101
logger.info("=" * 60)
102102

103103
# Test Number Variable (Integer)
104-
integer_details = open_feature_client.get_integer_details(
104+
open_feature_client.get_integer_details(
105105
"test-number-variable", 0, context
106106
)
107107
logger.info("Variable Key: test-number-variable")
@@ -114,7 +114,7 @@ def main():
114114

115115
# Test Number Variable as Float
116116
# Note: If the DevCycle variable is an integer, it will be cast to float
117-
float_value = open_feature_client.get_float_value(
117+
open_feature_client.get_float_value(
118118
"test-number-variable", 0.0, context
119119
)
120120
logger.info("Variable Key: test-number-variable (as float)")
@@ -125,7 +125,7 @@ def main():
125125
logger.info("=" * 60)
126126

127127
# Test JSON Object Variable
128-
json_details = open_feature_client.get_object_details(
128+
open_feature_client.get_object_details(
129129
"test-json-variable", {"default": "value"}, context
130130
)
131131
logger.info("Variable Key: test-json-variable")
@@ -137,7 +137,7 @@ def main():
137137
logger.info("=" * 60)
138138

139139
# Test with empty dictionary default (valid per OpenFeature spec)
140-
empty_dict_result = open_feature_client.get_object_value(
140+
open_feature_client.get_object_value(
141141
"test-json-variable", {}, context
142142
)
143143
logger.info("Variable Key: test-json-variable (with empty default)")
@@ -175,7 +175,7 @@ def main():
175175
"email": "[email protected]",
176176
"status": "active",
177177
}
178-
string_dict_result = open_feature_client.get_object_value(
178+
open_feature_client.get_object_value(
179179
"test-json-variable", string_dict_default, context
180180
)
181181
logger.info("Variable Key: test-json-variable (all strings)")
@@ -187,7 +187,7 @@ def main():
187187

188188
# Test with numeric values (integers and floats)
189189
numeric_dict_default = {"count": 100, "percentage": 85.5, "threshold": 0}
190-
numeric_dict_result = open_feature_client.get_object_value(
190+
open_feature_client.get_object_value(
191191
"test-json-variable", numeric_dict_default, context
192192
)
193193
logger.info("Variable Key: test-json-variable (numeric)")
@@ -199,7 +199,7 @@ def main():
199199

200200
# Test with boolean values
201201
bool_dict_default = {"feature_a": True, "feature_b": False, "feature_c": True}
202-
bool_dict_result = open_feature_client.get_object_value(
202+
open_feature_client.get_object_value(
203203
"test-json-variable", bool_dict_default, context
204204
)
205205
logger.info("Variable Key: test-json-variable (booleans)")
@@ -215,7 +215,7 @@ def main():
215215
"required_field": "value",
216216
"nullable_count": None,
217217
}
218-
none_dict_result = open_feature_client.get_object_value(
218+
open_feature_client.get_object_value(
219219
"test-json-variable", none_dict_default, context
220220
)
221221
logger.info("Variable Key: test-json-variable (with None)")
@@ -226,7 +226,7 @@ def main():
226226
logger.info("=" * 60)
227227

228228
# Test non-existent variable to demonstrate default handling
229-
nonexistent_details = open_feature_client.get_string_details(
229+
open_feature_client.get_string_details(
230230
"doesnt-exist", "default fallback value", context
231231
)
232232
logger.info("Variable Key: doesnt-exist")

0 commit comments

Comments
 (0)