Skip to content

Commit e2038c0

Browse files
committed
Added repr() methods in dummy CS
1 parent f0a5038 commit e2038c0

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

tests/dummy_cs/tango-pyaml/tango/pyaml/attribute.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,6 @@ def readback(self) -> Value:
4444

4545
def unit(self) -> str:
4646
return self._unit
47+
48+
def __repr__(self):
49+
return repr(self._cfg).replace("ConfigModel",self.__class__.__name__)

tests/dummy_cs/tango-pyaml/tango/pyaml/controlsystem.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,6 @@ def scalar_aggregator(self) -> str | None:
3030

3131
def vector_aggregator(self) -> str | None:
3232
return None
33+
34+
def __repr__(self):
35+
return repr(self._cfg).replace("ConfigModel",self.__class__.__name__)

0 commit comments

Comments
 (0)