net_aliases is just a dict

This commit is contained in:
jan 2022-03-30 23:58:20 -07:00
parent 35dbc1a4ff
commit 4870b95fa9

View File

@ -39,11 +39,11 @@ class NetName:
class NetsInfo: class NetsInfo:
nets: defaultdict[NetName, defaultdict[layer_t, List]] nets: defaultdict[NetName, defaultdict[layer_t, List]]
net_aliases: defaultdict[NetName, NetName] net_aliases: Dict[NetName, NetName]
def __init__(self) -> None: def __init__(self) -> None:
self.nets = defaultdict(lambda: defaultdict(list)) self.nets = defaultdict(lambda: defaultdict(list))
self.net_aliases = defaultdict(list) self.net_aliases = {}
def resolve_name(self, net_name: NetName) -> NetName: def resolve_name(self, net_name: NetName) -> NetName:
while net_name in self.net_aliases: while net_name in self.net_aliases: