We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9af0b7c commit 4b55b7fCopy full SHA for 4b55b7f
chia/util/streamable.py
@@ -459,7 +459,7 @@ def function_to_parse_one_item(f_type: type[Any]) -> ParseFunctionType:
459
if is_type_Enum(f_type):
460
if not hasattr(f_type, "_streamable_proxy"):
461
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)
+ return lambda f: f_type(function_to_parse_one_item(f_type._streamable_proxy)(f))
463
if f_type is str:
464
return parse_str
465
raise UnsupportedType(f"Type {f_type} does not have parse")
0 commit comments