diff --git a/amaranth/hdl/_ast.py b/amaranth/hdl/_ast.py index 1293f871d..096f5286f 100644 --- a/amaranth/hdl/_ast.py +++ b/amaranth/hdl/_ast.py @@ -3251,7 +3251,7 @@ def __lt__(self, other): return self._intern < other._intern def __repr__(self): - return f"<{__qualname__}.SignalKey {self.signal!r}>" + return f"<{type(self).__qualname__} {self.signal!r}>" class SignalDict(_MappedKeyDict):