Skip to content

Commit d164f39

Browse files
authored
Merge pull request #323 from ISISComputingGroup/rerpha-patch-1
Correct type hint for _get_initial_state()
2 parents 27f1e70 + 1e87fd7 commit d164f39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lewis/devices/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def _get_state_handlers(self) -> dict[str, State]:
139139
"_get_state_handlers must be implemented in a StateMachineDevice."
140140
)
141141

142-
def _get_initial_state(self) -> State:
142+
def _get_initial_state(self) -> str:
143143
"""
144144
Implement this method to return the initial state of the internal state machine.
145145
The default implementation raises a ``NotImplementedError``.
@@ -198,7 +198,7 @@ def _override_data(self, overrides: dict[str, float] | None) -> None:
198198
self.log.debug("Trying to override initial data (%s=%s)", name, val)
199199
if name not in dir(self):
200200
raise AttributeError(
201-
"Can not override non-existing attribute" "'{}' of class '{}'.".format(
201+
"Can not override non-existing attribute'{}' of class '{}'.".format(
202202
name, type(self).__name__
203203
)
204204
)

0 commit comments

Comments
 (0)