Skip to content

Commit f94bf5e

Browse files
committed
Fix typing in v1_init decorator
1 parent 3c0df70 commit f94bf5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dodal/device_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ def v1_init(
384384
and is not used to create the device.
385385
"""
386386

387-
def decorator(init: OphydInitialiser[V1]):
387+
def decorator(init: OphydInitialiser[V1]) -> V1DeviceFactory[V1]:
388388
name = init.__name__
389389
if name in self:
390390
raise ValueError(f"Duplicate factory name: {name}")

0 commit comments

Comments
 (0)