fix: typing on _fn_result_to_body was incorrect which was caused an exception with cython3 (#210)

This commit is contained in:
J. Nick Koston 2023-07-24 13:58:57 -05:00 committed by GitHub
parent 842562937c
commit c40c7bcc4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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