From a9760a17356408cf7faa3ec89a58d3a0faf50365 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 16 Jul 2018 11:43:09 +0100 Subject: [PATCH] whoops must delete type field before passing to bsv Pin class --- src/bsv/interface_decl.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bsv/interface_decl.py b/src/bsv/interface_decl.py index 84eb2f0..a4e3e75 100644 --- a/src/bsv/interface_decl.py +++ b/src/bsv/interface_decl.py @@ -124,6 +124,8 @@ class Interface(object): for p in pinspecs: _p = {} _p.update(p) + if _p.has_key('type'): + del _p['type'] if p.get('outen') is True: # special case, generate 3 pins del _p['outen'] for psuffix in ['out', 'outen', 'in']: -- 2.30.2