diff --git a/ophyd/sim.py b/ophyd/sim.py index 632fbecc4..28244621e 100644 --- a/ophyd/sim.py +++ b/ophyd/sim.py @@ -88,6 +88,7 @@ def get(self, *, as_string=True, **kwargs): def describe(self): desc = super().describe() desc[self.name]["enum_strs"] = self._enum_strs + desc[self.name]['dtype'] = 'string' return desc @@ -424,6 +425,9 @@ class SynAxis(Device): SUB_READBACK = "readback" _default_sub = SUB_READBACK + def __repr__(self): + return f"{self.__class__.__name__}(name={self.name!r})" + def __init__( self, *, diff --git a/setup.cfg b/setup.cfg index 85b8a5eae..2bd69c1f2 100644 --- a/setup.cfg +++ b/setup.cfg @@ -82,9 +82,12 @@ max-line-length = 115 extend-ignore = W504, W503, - E203, # See https://github.com/PyCQA/pycodestyle/issues/373 - F811, # support typing.overload decorator - F722, # allow Annotated[typ, some_func("some string")] + # See https://github.com/PyCQA/pycodestyle/issues/373 + E203, + # support typing.overload decorator + F811, + # allow Annotated[typ, some_func("some string")] + F722, exclude = ui_* .tox