Skip to content

Commit c43afbc

Browse files
suthar26Copilot
andauthored
Apply suggestion from @Copilot
Co-authored-by: Copilot <[email protected]>
1 parent d25d6ac commit c43afbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

devcycle_python_sdk/open_feature_provider/provider.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def resolve_object_details(
148148

149149
if default_value:
150150
for k, v in default_value.items():
151-
if not isinstance(v, (str, int, float, bool)) and v is not None:
151+
if not isinstance(v, (str, int, float, bool)) or v is None:
152152
raise TypeMismatchError(
153153
"Default value must be a flat dictionary containing only strings, numbers, booleans or None values"
154154
)

0 commit comments

Comments
 (0)