style: formatter again
CI / lint (pull_request) Successful in 1m34s
CI / lint (push) Successful in 2m26s
CI / test (3.11) (pull_request) Successful in 1m49s
CI / test (3.12) (pull_request) Successful in 1m46s
CI / test (3.11) (push) Successful in 1m28s
CI / test (3.12) (push) Successful in 4m54s
CI / lint (pull_request) Successful in 1m34s
CI / lint (push) Successful in 2m26s
CI / test (3.11) (pull_request) Successful in 1m49s
CI / test (3.12) (pull_request) Successful in 1m46s
CI / test (3.11) (push) Successful in 1m28s
CI / test (3.12) (push) Successful in 4m54s
This commit is contained in:
@@ -14,11 +14,15 @@ def wait_position(motor, target, tolerance=None, timeout=60.0):
|
||||
elif isinstance(position, (bytes, str)):
|
||||
tst = "'%s' == '%s'"
|
||||
if isinstance(position, bytes):
|
||||
|
||||
def ltst(x, y, z):
|
||||
return (
|
||||
x.lower() == y.lower().encode() if isinstance(y, str) else x.lower() == y.lower()
|
||||
)
|
||||
x.lower() == y.lower().encode()
|
||||
if isinstance(y, str)
|
||||
else x.lower() == y.lower()
|
||||
)
|
||||
else:
|
||||
|
||||
def ltst(x, y, z):
|
||||
return x.lower() == y.lower()
|
||||
else:
|
||||
|
||||
+6
-6
@@ -200,12 +200,12 @@ def main():
|
||||
logger.error(f"Traceback: {traceback.format_exc()}")
|
||||
|
||||
QMessageBox.critical(
|
||||
None,
|
||||
"Fatal Error",
|
||||
f"An error occurred during startup. See console for details."
|
||||
f"\nPlease check the server is running and your network connection."
|
||||
f"\n\n{str(e)}\n\n",
|
||||
)
|
||||
None,
|
||||
"Fatal Error",
|
||||
f"An error occurred during startup. See console for details."
|
||||
f"\nPlease check the server is running and your network connection."
|
||||
f"\n\n{str(e)}\n\n",
|
||||
)
|
||||
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
@@ -189,7 +189,11 @@ class CompletionEvaluator:
|
||||
self._event_bus = event_bus
|
||||
|
||||
def is_step_complete(
|
||||
self, step: TutorialStepDefinition, context: TutorialContext, *, target_clicked: bool = False
|
||||
self,
|
||||
step: TutorialStepDefinition,
|
||||
context: TutorialContext,
|
||||
*,
|
||||
target_clicked: bool = False,
|
||||
) -> bool:
|
||||
if step.completion is None:
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user