fixup! [plug()] rename inherit_name arg to thru and allow passing a string

This commit is contained in:
jan 2025-11-19 00:17:10 -08:00
parent 2b7b1cd6e2
commit fcd3d9663d

View File

@ -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')