diff options
-rwxr-xr-x | build-aux/stack.c.gen | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/build-aux/stack.c.gen b/build-aux/stack.c.gen index a8a971e..1a96379 100755 --- a/build-aux/stack.c.gen +++ b/build-aux/stack.c.gen @@ -130,7 +130,9 @@ class QName: return self._content def __eq__(self, other: typing.Any) -> bool: - assert isinstance(other, QName) + assert isinstance( + other, QName + ), f"comparing QName with {other.__class__.__name__}" return self._content == other._content def __lt__(self, other: "QName") -> bool: @@ -541,7 +543,7 @@ class LibObjPlugin: objcalls: dict[str, set[QName]] = {} # method_name => {method_impls} for iface_name in ifaces: for method_name in ifaces[iface_name]: - if QName(method_name) not in objcalls: + if method_name not in objcalls: objcalls[method_name] = set() for impl_name in implementations[iface_name]: objcalls[method_name].add(QName(impl_name + "_" + method_name)) |