Start adding ANN ruff rules

This commit is contained in:
Julian Stirling 2025-08-27 13:21:34 +01:00
parent 154f063ab3
commit 24233412af
19 changed files with 123 additions and 46 deletions

View file

@ -332,7 +332,7 @@ class SmartSpiral(ScanPlanner):
"""Sort the remaining positions based on the current location."""
# Defined rather than use a lambda for readability
def sort_key(pos):
def sort_key(pos: XYPos):
return (
self.moves_between(current_pos, pos),
self.moves_between(self._initial_position, pos),