Skip to content

Commit ccf2cd1

Browse files
committed
fix type id
1 parent 6414f66 commit ccf2cd1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/pyfory/_struct.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def visit_other(self, field_name, type_, types_path=None):
256256
from pyfory.serializer import PickleSerializer # Local import
257257

258258
if is_subclass(type_, enum.Enum):
259-
return self.fory.type_resolver.get_typeinfo(type_).type_id
259+
return [self.fory.type_resolver.get_typeinfo(type_).type_id]
260260
if type_ not in basic_types and not is_py_array_type(type_):
261261
return None, None
262262
typeinfo = self.fory.type_resolver.get_typeinfo(type_)

0 commit comments

Comments
 (0)