fixup! [plug()] rename inherit_name arg to thru and allow passing a string
This commit is contained in:
parent
2b7b1cd6e2
commit
fcd3d9663d
1 changed files with 1 additions and 1 deletions
|
|
@ -1305,7 +1305,7 @@ class Pattern(PortList, AnnotatableImpl, Mirrorable):
|
||||||
|
|
||||||
# If asked to inherit a name, check that all conditions are met
|
# If asked to inherit a name, check that all conditions are met
|
||||||
if isinstance(thru, str):
|
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')
|
raise PatternError(f'Got {thru=} but have multiple map_in entries; don\'t know which one to use')
|
||||||
if thru in map_out:
|
if thru in map_out:
|
||||||
raise PatternError(f'Got {thru=} but tha port already exists in map_out')
|
raise PatternError(f'Got {thru=} but tha port already exists in map_out')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue