Reformat code with upgraded version of black (#3446)

This commit is contained in:
zhexu14
2024-10-05 07:19:39 +10:00
committed by GitHub
parent b008305275
commit 0e9a8ac1a1
58 changed files with 121 additions and 161 deletions

View File

@@ -15,15 +15,12 @@ if TYPE_CHECKING:
class WaypointAction(ABC):
@abstractmethod
def describe(self) -> str:
...
def describe(self) -> str: ...
@abstractmethod
def update_state(
self, state: ActionState, time: datetime, duration: timedelta
) -> timedelta:
...
) -> timedelta: ...
@abstractmethod
def iter_tasks(self, ctx: TaskContext) -> Iterator[Task]:
...
def iter_tasks(self, ctx: TaskContext) -> Iterator[Task]: ...

View File

@@ -28,14 +28,12 @@ def point_at_heading(p: Point, heading: Heading, distance: Distance) -> Point:
class Prerequisite(ABC):
@abstractmethod
def is_satisfied(self) -> bool:
...
def is_satisfied(self) -> bool: ...
@abstractmethod
def describe_debug_info(
self, to_geojson: Callable[[BaseGeometry], dict[str, Any]]
) -> dict[str, Any]:
...
) -> dict[str, Any]: ...
class DistancePrerequisite(Prerequisite):