diff --git a/src/dbus_fast/_private/unmarshaller.pxd b/src/dbus_fast/_private/unmarshaller.pxd index 9e61b5e..a8feb0d 100644 --- a/src/dbus_fast/_private/unmarshaller.pxd +++ b/src/dbus_fast/_private/unmarshaller.pxd @@ -133,7 +133,7 @@ cdef class Unmarshaller: cdef unsigned int _pos cdef object _stream cdef object _sock - cdef object _message + cdef Message _message cdef object _readers cdef unsigned int _body_len cdef unsigned int _serial @@ -161,20 +161,20 @@ cdef class Unmarshaller: recv=cython.tuple, errno=cython.uint ) - cdef void _read_sock_with_fds(self, unsigned int pos, unsigned int missing_bytes) + cdef void _read_sock_with_fds(self, unsigned int pos, unsigned int missing_bytes) except * @cython.locals( data=cython.bytes, errno=cython.uint ) - cdef void _read_sock_without_fds(self, unsigned int pos) + cdef void _read_sock_without_fds(self, unsigned int pos) except * @cython.locals( data=cython.bytes ) - cdef void _read_stream(self, unsigned int pos, unsigned int missing_bytes) + cdef void _read_stream(self, unsigned int pos, unsigned int missing_bytes) except * - cdef void _read_to_pos(self, unsigned int pos) + cdef void _read_to_pos(self, unsigned int pos) except * cpdef read_boolean(self, SignatureType type_) @@ -232,7 +232,7 @@ cdef class Unmarshaller: key=cython.str, ustring="const unsigned char *", ) - cdef _read_header(self) + cdef void _read_header(self) except * @cython.locals( body=list, @@ -242,9 +242,9 @@ cdef class Unmarshaller: tree=SignatureTree, message=Message ) - cdef _read_body(self) + cdef void _read_body(self) except * - cdef _unmarshall(self) + cdef Message _unmarshall(self) cpdef unmarshall(self) diff --git a/src/dbus_fast/message_bus.pxd b/src/dbus_fast/message_bus.pxd index b55f4fb..2169f66 100644 --- a/src/dbus_fast/message_bus.pxd +++ b/src/dbus_fast/message_bus.pxd @@ -45,7 +45,7 @@ cdef class BaseMessageBus: cdef public object _stream cdef public object _fd - cpdef void _process_message(self, Message msg) + cpdef void _process_message(self, Message msg) except * @cython.locals(exported_service_interface=ServiceInterface) cpdef export(self, str path, ServiceInterface interface) @@ -72,4 +72,4 @@ cdef class BaseMessageBus: _Method method, Message msg, object send_reply - ) + ) except *