Skip to content

Commit c4fb5c7

Browse files
author
Anders Hellerup Madsen
committed
document signature parameter to decorators
1 parent dd66119 commit c4fb5c7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

dbus_next/service.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ def method(name: str = None,
8484
:type name: str
8585
:param disabled: If set to true, the method will not be visible to clients.
8686
:type disabled: bool
87+
:param in_signature: If set, this signature string will be used and no parsing of method paramter type annotations will be done.
88+
:type in_signature: str
89+
:param out_signature: If set, this signature string will be used and no parsing of the method return annotation will be done.
90+
:type out_signature: str
8791
8892
:example:
8993
@@ -163,6 +167,8 @@ def signal(name: str = None, disabled: bool = False, signature: Optional[str] =
163167
:type name: str
164168
:param disabled: If set to true, the signal will not be visible to clients.
165169
:type disabled: bool
170+
:param signature: If set, this signature string will be used and no parsing of method type annotations will be done.
171+
:type signature: str
166172
167173
:example:
168174
@@ -314,6 +320,8 @@ def dbus_property(access: PropertyAccess = PropertyAccess.READWRITE,
314320
:param disabled: If set to true, the property will not be visible to
315321
clients.
316322
:type disabled: bool
323+
:param signature: If set, this signature string will be used and no parsing of method type annotations will be done.
324+
:type signature: str
317325
318326
:example:
319327

0 commit comments

Comments
 (0)