Skip to content

Commit

Permalink
fix: warning
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Dec 4, 2023
1 parent 71799d8 commit 9fc8c51
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/dbus_fast/service.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ cdef class ServiceInterface:
@staticmethod
cdef tuple _c_fn_result_to_body(
object result,
SignatureTree signature_tree,
object signature_tree,
bint replace_fds,
)
6 changes: 4 additions & 2 deletions src/dbus_fast/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
get_signature_tree,
)

_SignatureTree = SignatureTree

if TYPE_CHECKING:
from .message_bus import BaseMessageBus

Expand Down Expand Up @@ -523,7 +525,7 @@ def _c_msg_body_to_args(msg: Message) -> List[Any]:
@staticmethod
def _fn_result_to_body(
result: Optional[Any],
signature_tree: SignatureTree,
signature_tree: _SignatureTree,
replace_fds: bool = True,
) -> Tuple[List[Any], List[int]]:
return ServiceInterface._c_fn_result_to_body(
Expand All @@ -533,7 +535,7 @@ def _fn_result_to_body(
@staticmethod
def _c_fn_result_to_body(
result: Optional[Any],
signature_tree: SignatureTree,
signature_tree: _SignatureTree,
replace_fds: bool,
) -> Tuple[List[Any], List[int]]:
"""The high level interfaces may return single values which may be
Expand Down

0 comments on commit 9fc8c51

Please sign in to comment.