fix format string now that ptypes are str-typed
This commit is contained in:
parent
a92ab9425b
commit
47e8cab73c
@ -631,7 +631,7 @@ class Device(Copyable, Mirrorable):
|
|||||||
msg = 'Ports have conflicting types:\n'
|
msg = 'Ports have conflicting types:\n'
|
||||||
for nn, (k, v) in enumerate(map_in.items()):
|
for nn, (k, v) in enumerate(map_in.items()):
|
||||||
if type_conflicts[nn]:
|
if type_conflicts[nn]:
|
||||||
msg += f'{k} | {s_types[nn]:g}:{o_types[nn]:g} | {v}\n'
|
msg += f'{k} | {s_types[nn]}:{o_types[nn]} | {v}\n'
|
||||||
msg = ''.join(traceback.format_stack()) + '\n' + msg
|
msg = ''.join(traceback.format_stack()) + '\n' + msg
|
||||||
warnings.warn(msg, stacklevel=2)
|
warnings.warn(msg, stacklevel=2)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user