Skip to content

Commit

Permalink
Allow dict properties in Demand
Browse files Browse the repository at this point in the history
  • Loading branch information
nieznanysprawiciel authored and kamirr committed Sep 12, 2024
1 parent b568906 commit c743d3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yapapi/props/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def add(self, m: Model):
value = int(value.timestamp() * 1000)
if isinstance(value, enum.Enum):
value = value.value
assert isinstance(value, (str, int, list))
assert isinstance(value, (str, int, list, dict))
self._properties[prop_id] = value

def add_properties(self, props: dict):
Expand Down

0 comments on commit c743d3f

Please sign in to comment.