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 committed Mar 29, 2024
1 parent cb285f8 commit f8ab82d
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 f8ab82d

Please sign in to comment.