From c9bea05f44d936ae54a005c2dd9f43e3b5276e4b Mon Sep 17 00:00:00 2001 From: lewinb-corp <146968822+lewinb-corp@users.noreply.github.com> Date: Fri, 20 Oct 2023 12:48:19 +0200 Subject: [PATCH] DynamicCapabilityClient: fix crash due to wrong types In the last commit touching this line, a ')' was put in the wrong place, leading to errors like this one: ``` File "capnp/lib/capnp.pyx", line 2172, in capnp.lib.capnp._DynamicCapabilityClient.__dir__ TypeError: unsupported operand type(s) for +: 'set' and 'tuple' ``` --- capnp/lib/capnp.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/capnp/lib/capnp.pyx b/capnp/lib/capnp.pyx index afbb3bf..e824b2e 100644 --- a/capnp/lib/capnp.pyx +++ b/capnp/lib/capnp.pyx @@ -2199,7 +2199,7 @@ cdef class _DynamicCapabilityClient: return self._cached_schema def __dir__(self): - return list(set(self.schema.method_names_inherited) + tuple(dir(self.__class__))) + return list(set(self.schema.method_names_inherited + tuple(dir(self.__class__)))) cdef class _CapabilityClient: