Skip to content

Commit

Permalink
DynamicCapabilityClient: fix crash due to wrong types
Browse files Browse the repository at this point in the history
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'
```
  • Loading branch information
lewinb-corp authored and haata committed Oct 23, 2023
1 parent 7a49706 commit c9bea05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion capnp/lib/capnp.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c9bea05

Please sign in to comment.