Skip to content

Commit 9e8e1e9

Browse files
committed
fully define type in prototype
1 parent e65b1e2 commit 9e8e1e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vetiver/prototype.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def _(data: dict):
182182
# automatically create for simple prototypes
183183
try:
184184
for key, value in data["properties"].items():
185-
dict_data.update({key: (value["type"], value["default"])})
185+
dict_data.update({key: (type(value["default"]), value["default"])})
186186
# error for complex objects
187187
except KeyError:
188188
raise InvalidPTypeError(

0 commit comments

Comments
 (0)