Skip to content

Commit a71d2af

Browse files
Correct type hint in replies.py
1 parent d164f39 commit a71d2af

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lewis/utils/replies.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ def _get_device_from(instance: StreamInterface):
4141
return device
4242

4343

44-
def conditional_reply(property_name: str, reply: str | None = None) -> Callable[P, T]:
44+
def conditional_reply(
45+
property_name: str, reply: str | None = None
46+
) -> Callable[[Callable[P, T]], Callable[P, T]]:
4547
"""
4648
Decorator that executes the command and replies if the device has a member called
4749
'property name' and it is True in a boolean context.

0 commit comments

Comments
 (0)