Skip to content
This repository was archived by the owner on Oct 2, 2025. It is now read-only.

Commit 8a91312

Browse files
committed
Minor fix for object when value is not None
1 parent 7a7f2d5 commit 8a91312

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rebase/core/object.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def _debug(self) -> Dict[str, Any]:
129129

130130
def _enforce_data_type(self, data: Any, data_type: type) -> Any:
131131
try:
132-
if data:
132+
if data is not None:
133133
if isinstance(data_type, type) and isinstance(data_type(), Object):
134134
return data_type(**data)
135135
elif data_type in (bool, str, int, float, complex, list, tuple, range, set, dict) or callable(data_type):

0 commit comments

Comments
 (0)