Skip to content

Commit 4b55b7f

Browse files
committed
make sure to convert to enum on parse
1 parent 9af0b7c commit 4b55b7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chia/util/streamable.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ def function_to_parse_one_item(f_type: type[Any]) -> ParseFunctionType:
459459
if is_type_Enum(f_type):
460460
if not hasattr(f_type, "_streamable_proxy"):
461461
raise UnsupportedType(f"Using Enum ({f_type}) in streamable requires a 'streamable_enum' wrapper.")
462-
return function_to_parse_one_item(f_type._streamable_proxy)
462+
return lambda f: f_type(function_to_parse_one_item(f_type._streamable_proxy)(f))
463463
if f_type is str:
464464
return parse_str
465465
raise UnsupportedType(f"Type {f_type} does not have parse")

0 commit comments

Comments
 (0)