Skip to content

Commit

Permalink
py-mavros: reformat with black
Browse files Browse the repository at this point in the history
  • Loading branch information
vooon committed Oct 10, 2024
1 parent 25877c9 commit fe25c91
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions mavros/mavros/mission.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,20 +92,20 @@ class QGroundControlWPL(PlanFile):
known_versions = (110, 120)

FieldTypes = typing.Union[bool, int, float]
fields_map: typing.Mapping[
str, typing.Callable[[typing.Any], FieldTypes]
] = OrderedDict(
is_current=lambda x: bool(int(x)),
frame=int,
command=int,
param1=float,
param2=float,
param3=float,
param4=float,
x_lat=float,
y_long=float,
z_alt=float,
autocontinue=lambda x: bool(int(x)),
fields_map: typing.Mapping[str, typing.Callable[[typing.Any], FieldTypes]] = (
OrderedDict(
is_current=lambda x: bool(int(x)),
frame=int,
command=int,
param1=float,
param2=float,
param3=float,
param4=float,
x_lat=float,
y_long=float,
z_alt=float,
autocontinue=lambda x: bool(int(x)),
)
)

class CSVDialect(csv.Dialect):
Expand Down

0 comments on commit fe25c91

Please sign in to comment.