fixup! [plug()] rename inherit_name arg to thru and allow passing a string
This commit is contained in:
parent
2b7b1cd6e2
commit
fcd3d9663d
@ -1305,7 +1305,7 @@ class Pattern(PortList, AnnotatableImpl, Mirrorable):
|
||||
|
||||
# If asked to inherit a name, check that all conditions are met
|
||||
if isinstance(thru, str):
|
||||
if not len(map_in == 1):
|
||||
if not len(map_in) == 1:
|
||||
raise PatternError(f'Got {thru=} but have multiple map_in entries; don\'t know which one to use')
|
||||
if thru in map_out:
|
||||
raise PatternError(f'Got {thru=} but tha port already exists in map_out')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user