Skip to content

Commit 95a238d

Browse files
committed
Format
1 parent 401b24e commit 95a238d

File tree

1 file changed

+28
-7
lines changed

1 file changed

+28
-7
lines changed

lucidmotors/__init__.py

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,10 @@ def enum_to_str(enum_type: EnumTypeWrapper, value: int) -> str:
174174
| (VSS.EnergyType, EnergyType.ENERGY_TYPE_UNKNOWN)
175175
| (VSS.DriveMode, DriveMode.DRIVE_MODE_UNKNOWN)
176176
| (VSS.GearPosition, GearPosition.GEAR_UNKNOWN)
177-
| (VSS.TcuDownloadStatus, TcuDownloadStatus.TCU_SOFTWARE_DOWNLOAD_STATUS_UNKNOWN)
177+
| (
178+
VSS.TcuDownloadStatus,
179+
TcuDownloadStatus.TCU_SOFTWARE_DOWNLOAD_STATUS_UNKNOWN,
180+
)
178181
):
179182
return "Unknown"
180183

@@ -323,17 +326,35 @@ def enum_to_str(enum_type: EnumTypeWrapper, value: int) -> str:
323326
case (VSS.GearPosition, GearPosition.GEAR_DRIVE):
324327
return "Drive"
325328

326-
case (VSS.TcuDownloadStatus, TcuDownloadStatus.TCU_SOFTWARE_DOWNLOAD_STATUS_IDLE):
329+
case (
330+
VSS.TcuDownloadStatus,
331+
TcuDownloadStatus.TCU_SOFTWARE_DOWNLOAD_STATUS_IDLE,
332+
):
327333
return "Idle"
328-
case (VSS.TcuDownloadStatus, TcuDownloadStatus.TCU_SOFTWARE_DOWNLOAD_STATUS_DOWNLOADING):
334+
case (
335+
VSS.TcuDownloadStatus,
336+
TcuDownloadStatus.TCU_SOFTWARE_DOWNLOAD_STATUS_DOWNLOADING,
337+
):
329338
return "Downloading"
330-
case (VSS.TcuDownloadStatus, TcuDownloadStatus.TCU_SOFTWARE_DOWNLOAD_STATUS_DOWNLOAD_PAUSED):
339+
case (
340+
VSS.TcuDownloadStatus,
341+
TcuDownloadStatus.TCU_SOFTWARE_DOWNLOAD_STATUS_DOWNLOAD_PAUSED,
342+
):
331343
return "Paused"
332-
case (VSS.TcuDownloadStatus, TcuDownloadStatus.TCU_SOFTWARE_DOWNLOAD_STATUS_DOWNLOAD_COMPLETE):
344+
case (
345+
VSS.TcuDownloadStatus,
346+
TcuDownloadStatus.TCU_SOFTWARE_DOWNLOAD_STATUS_DOWNLOAD_COMPLETE,
347+
):
333348
return "Complete"
334-
case (VSS.TcuDownloadStatus, TcuDownloadStatus.TCU_SOFTWARE_DOWNLOAD_STATUS_DOWNLOAD_FAILED):
349+
case (
350+
VSS.TcuDownloadStatus,
351+
TcuDownloadStatus.TCU_SOFTWARE_DOWNLOAD_STATUS_DOWNLOAD_FAILED,
352+
):
335353
return "Failed"
336-
case (VSS.TcuDownloadStatus, TcuDownloadStatus.TCU_SOFTWARE_DOWNLOAD_STATUS_DOWNLOAD_CANCELED):
354+
case (
355+
VSS.TcuDownloadStatus,
356+
TcuDownloadStatus.TCU_SOFTWARE_DOWNLOAD_STATUS_DOWNLOAD_CANCELED,
357+
):
337358
return "Canceled"
338359

339360
case _:

0 commit comments

Comments
 (0)