From 47e8cab73c9c7f5f9afad9a152a4dd9595b23469 Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Thu, 24 Jun 2021 23:25:15 -0700 Subject: [PATCH] fix format string now that ptypes are str-typed --- masque/builder/devices.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/masque/builder/devices.py b/masque/builder/devices.py index faad1de..af33fb4 100644 --- a/masque/builder/devices.py +++ b/masque/builder/devices.py @@ -631,7 +631,7 @@ class Device(Copyable, Mirrorable): msg = 'Ports have conflicting types:\n' for nn, (k, v) in enumerate(map_in.items()): 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 warnings.warn(msg, stacklevel=2)