From 4de384c66c6e8249c2828a74be41cdc3e9090c8b Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Sat, 8 Jul 2023 07:59:51 +0100 Subject: [PATCH] repr method added to factory base --- vban_cmd/factory.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vban_cmd/factory.py b/vban_cmd/factory.py index b158927..57a96ce 100644 --- a/vban_cmd/factory.py +++ b/vban_cmd/factory.py @@ -108,6 +108,12 @@ class FactoryBase(VbanCmd): def __str__(self) -> str: return f"Voicemeeter {self.kind}" + def __repr__(self): + return ( + type(self).__name__ + + f"({self.kind}, ip='{self.ip}', port={self.port}, streamname='{self.streamname}')" + ) + @property @abstractmethod def steps(self):