From c40c7bcc4a8bbbce73d4d090ac840f8fe95d943e Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 24 Jul 2023 13:58:57 -0500 Subject: [PATCH] fix: typing on _fn_result_to_body was incorrect which was caused an exception with cython3 (#210) --- src/dbus_fast/service.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/dbus_fast/service.py b/src/dbus_fast/service.py index 7f5b474..0eff2b7 100644 --- a/src/dbus_fast/service.py +++ b/src/dbus_fast/service.py @@ -504,7 +504,9 @@ class ServiceInterface: @staticmethod def _fn_result_to_body( - result: List[Any], signature_tree: SignatureTree, replace_fds: bool = True + result: Optional[List[Any]], + signature_tree: SignatureTree, + replace_fds: bool = True, ) -> Tuple[List[Any], List[int]]: """The high level interfaces may return single values which may be wrapped in a list to be a message body. Also they may return fds