Skip to content

Commit c3e9266

Browse files
committed
Add repr to v1 device factory
1 parent db20ffc commit c3e9266

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/dodal/device_manager.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,9 @@ def build(self, mock: bool = False, fixtures: dict[str, Any] | None = None) -> V
289289
device = devices.devices[self.name].device
290290
return device # type: ignore - it's us really, promise
291291

292+
def __repr__(self) -> str:
293+
return f"<{self.name}: V1DeviceFactory({self.factory.__name__})>"
294+
292295

293296
class ConnectionSpec(NamedTuple):
294297
"""A device paired with the options used to configure it"""

0 commit comments

Comments
 (0)