Skip to content

useless-semicolon: ruff check --select=E703 --fix #769

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions mavsdk/action_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ async def arm_disarm(self):
raise ActionServerError(result, "arm_disarm()")

if result.result == ActionServerResult.Result.SUCCESS:
arm_disarm_stream.cancel();
arm_disarm_stream.cancel()
return


Expand Down Expand Up @@ -606,7 +606,7 @@ async def flight_mode_change(self):
raise ActionServerError(result, "flight_mode_change()")

if result.result == ActionServerResult.Result.SUCCESS:
flight_mode_change_stream.cancel();
flight_mode_change_stream.cancel()
return


Expand Down Expand Up @@ -645,7 +645,7 @@ async def takeoff(self):
raise ActionServerError(result, "takeoff()")

if result.result == ActionServerResult.Result.SUCCESS:
takeoff_stream.cancel();
takeoff_stream.cancel()
return


Expand Down Expand Up @@ -684,7 +684,7 @@ async def land(self):
raise ActionServerError(result, "land()")

if result.result == ActionServerResult.Result.SUCCESS:
land_stream.cancel();
land_stream.cancel()
return


Expand Down Expand Up @@ -723,7 +723,7 @@ async def reboot(self):
raise ActionServerError(result, "reboot()")

if result.result == ActionServerResult.Result.SUCCESS:
reboot_stream.cancel();
reboot_stream.cancel()
return


Expand Down Expand Up @@ -762,7 +762,7 @@ async def shutdown(self):
raise ActionServerError(result, "shutdown()")

if result.result == ActionServerResult.Result.SUCCESS:
shutdown_stream.cancel();
shutdown_stream.cancel()
return


Expand Down Expand Up @@ -801,7 +801,7 @@ async def terminate(self):
raise ActionServerError(result, "terminate()")

if result.result == ActionServerResult.Result.SUCCESS:
terminate_stream.cancel();
terminate_stream.cancel()
return


Expand Down
10 changes: 5 additions & 5 deletions mavsdk/calibration.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ async def calibrate_gyro(self):
raise CalibrationError(result, "calibrate_gyro()")

if result.result == CalibrationResult.Result.SUCCESS:
calibrate_gyro_stream.cancel();
calibrate_gyro_stream.cancel()
return


Expand Down Expand Up @@ -408,7 +408,7 @@ async def calibrate_accelerometer(self):
raise CalibrationError(result, "calibrate_accelerometer()")

if result.result == CalibrationResult.Result.SUCCESS:
calibrate_accelerometer_stream.cancel();
calibrate_accelerometer_stream.cancel()
return


Expand Down Expand Up @@ -448,7 +448,7 @@ async def calibrate_magnetometer(self):
raise CalibrationError(result, "calibrate_magnetometer()")

if result.result == CalibrationResult.Result.SUCCESS:
calibrate_magnetometer_stream.cancel();
calibrate_magnetometer_stream.cancel()
return


Expand Down Expand Up @@ -488,7 +488,7 @@ async def calibrate_level_horizon(self):
raise CalibrationError(result, "calibrate_level_horizon()")

if result.result == CalibrationResult.Result.SUCCESS:
calibrate_level_horizon_stream.cancel();
calibrate_level_horizon_stream.cancel()
return


Expand Down Expand Up @@ -528,7 +528,7 @@ async def calibrate_gimbal_accelerometer(self):
raise CalibrationError(result, "calibrate_gimbal_accelerometer()")

if result.result == CalibrationResult.Result.SUCCESS:
calibrate_gimbal_accelerometer_stream.cancel();
calibrate_gimbal_accelerometer_stream.cancel()
return


Expand Down
4 changes: 2 additions & 2 deletions mavsdk/ftp.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ async def download(self, remote_file_path, local_dir, use_burst):
raise FtpError(result, "download()", remote_file_path, local_dir, use_burst)

if result.result == FtpResult.Result.SUCCESS:
download_stream.cancel();
download_stream.cancel()
return


Expand Down Expand Up @@ -482,7 +482,7 @@ async def upload(self, local_file_path, remote_dir):
raise FtpError(result, "upload()", local_file_path, remote_dir)

if result.result == FtpResult.Result.SUCCESS:
upload_stream.cancel();
upload_stream.cancel()
return


Expand Down
2 changes: 1 addition & 1 deletion mavsdk/log_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ async def download_log_file(self, entry, path):
raise LogFilesError(result, "download_log_file()", entry, path)

if result.result == LogFilesResult.Result.SUCCESS:
download_log_file_stream.cancel();
download_log_file_stream.cancel()
return


Expand Down
4 changes: 2 additions & 2 deletions mavsdk/mission.py
Original file line number Diff line number Diff line change
Expand Up @@ -1054,7 +1054,7 @@ async def upload_mission_with_progress(self, mission_plan):
raise MissionError(result, "upload_mission_with_progress()", mission_plan)

if result.result == MissionResult.Result.SUCCESS:
upload_mission_with_progress_stream.cancel();
upload_mission_with_progress_stream.cancel()
return


Expand Down Expand Up @@ -1148,7 +1148,7 @@ async def download_mission_with_progress(self):
raise MissionError(result, "download_mission_with_progress()")

if result.result == MissionResult.Result.SUCCESS:
download_mission_with_progress_stream.cancel();
download_mission_with_progress_stream.cancel()
return


Expand Down
2 changes: 1 addition & 1 deletion mavsdk/mission_raw_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ async def incoming_mission(self):
raise MissionRawServerError(result, "incoming_mission()")

if result.result == MissionRawServerResult.Result.SUCCESS:
incoming_mission_stream.cancel();
incoming_mission_stream.cancel()
return


Expand Down
Loading