Updated types

This commit is contained in:
Andrei Bondarenko 2021-07-14 08:41:08 +02:00
parent 24119609b3
commit 93b602a0eb
3 changed files with 18 additions and 71 deletions

View file

@ -29,8 +29,8 @@ class DevState(PyState):
for n in sorted(self.nodes):
if n in self.values:
x = self.values[n]
if isinstance(x, dict):
x = f"{x.get('type')}"
if isinstance(x, tuple):
x = f"{x[0]}"
else:
x = repr(x)
f.write("\"a_%s\" [label=\"%s\"];\n" % (