Skip to content

Commit

Permalink
🐍 Handle erlang's immutable list in venomoustrait conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
RustySnek committed Sep 10, 2024
1 parent 836cb60 commit afb2ad3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/venomous.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from dataclasses import dataclass
from typing import Any, Dict

from erlport.erlterms import Atom, Map
from erlport.erlterms import Atom, List, Map


def encode_basic_type_strings(data: Any):
Expand Down Expand Up @@ -73,6 +73,8 @@ def from_dict(cls, erl_map: Map | Dict, structs: Dict = {}):
continue
if isinstance(val, bytes):
val = val.decode("utf-8")
elif isinstance(val, List):
val = [encode_basic_type_strings(_val) for _val in val]
if structs:

if (
Expand Down

0 comments on commit afb2ad3

Please sign in to comment.