From 9259057821ea64968e051dac2071ac880c9f95c6 Mon Sep 17 00:00:00 2001 From: Rob Taylor Date: Sat, 18 Jan 2025 09:35:46 +0000 Subject: [PATCH] Fix repr of Signature so it works for subclasses --- amaranth/lib/wiring.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amaranth/lib/wiring.py b/amaranth/lib/wiring.py index 1122a625f..c1004b869 100644 --- a/amaranth/lib/wiring.py +++ b/amaranth/lib/wiring.py @@ -1002,7 +1002,7 @@ def annotations(self, obj, /): return tuple() def __repr__(self): - if type(self) is Signature: + if isinstance(self, Signature): return f"Signature({dict(self.members.items())})" return super().__repr__()