Skip to content

Commit 3b9481e

Browse files
authored
Merge pull request #324 from ISISComputingGroup/replies_type_hint
Correct type hint in replies.py
2 parents d164f39 + a71d2af commit 3b9481e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lewis/utils/replies.py

+3-1
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)