From: Björn Bösel Date: Thu, 3 Mar 2022 16:56:04 +0000 (+0100) Subject: code style for a last time X-Git-Tag: 7.1.0~1^2 X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/commitdiff_plain/3faa9b1c15a46daaf524146d84679f5fef96d956?hp=-c code style for a last time --- 3faa9b1c15a46daaf524146d84679f5fef96d956 diff --git a/src/usb_hid.py b/src/usb_hid.py index b9d9dac..7db2b8e 100644 --- a/src/usb_hid.py +++ b/src/usb_hid.py @@ -52,9 +52,9 @@ class Device: def send_report(self, report: bytearray, report_id: int = None): """Send an HID report. If the device descriptor specifies zero or one report id's, - you can supply `None` (the default) as the value of ``report_id``. - Otherwise you must specify which report id to use when sending the report. - """ + you can supply `None` (the default) as the value of ``report_id``. + Otherwise you must specify which report id to use when sending the report. + """ report_id = report_id or self.report_ids[0] device_path = self.get_device_path(report_id) with open(device_path, "rb+") as fd: