Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ophyd/sim.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestions from linter:

Suggested change
desc[self.name]['dtype'] = 'string'
desc[self.name]["dtype"] = "string"

return desc


Expand Down Expand Up @@ -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,
*,
Expand Down
9 changes: 6 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down