fix: added code type to default types

This commit is contained in:
Gabriel Almeida 2023-03-28 21:12:03 -03:00
commit 93de968cf1

View file

@ -69,7 +69,9 @@ class Node:
for key, value in template_dict.items(): for key, value in template_dict.items():
if key == "_type": if key == "_type":
continue continue
if value["type"] not in ["str", "bool"]: # If the type is not transformable to a python base class
# then we need to get the edge that connects to this node
if value["type"] not in ["str", "bool", "code"]:
# Get the edge that connects to this node # Get the edge that connects to this node
edge = next( edge = next(
( (