Skip to content

Commit 62c2107

Browse files
add manually the pre-commit formatting that could not be automatically applied
1 parent 137c2c5 commit 62c2107

File tree

26 files changed

+85
-37
lines changed

26 files changed

+85
-37
lines changed

ports/espressif/bindings/espnow/ESPNow.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ static const mp_stream_p_t espnow_stream_p = {
320320
//| This is an easy way to check if the buffer is empty.
321321
//| """
322322
//| ...
323+
//|
323324
//| def __len__(self) -> int:
324325
//| """Return the number of `bytes` available to read. Used to implement ``len()``."""
325326
//| ...

ports/espressif/tools/update_sdkconfig.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,9 @@ def update(debug, board, update_all):
195195
ble_enabled = not (value == "0")
196196

197197
os.environ["IDF_TARGET"] = target
198-
os.environ[
199-
"COMPONENT_KCONFIGS_PROJBUILD_SOURCE_FILE"
200-
] = f"build-{board}/esp-idf/kconfigs_projbuild.in"
198+
os.environ["COMPONENT_KCONFIGS_PROJBUILD_SOURCE_FILE"] = (
199+
f"build-{board}/esp-idf/kconfigs_projbuild.in"
200+
)
201201
os.environ["COMPONENT_KCONFIGS_SOURCE_FILE"] = f"build-{board}/esp-idf/kconfigs.in"
202202

203203
kconfig_path = pathlib.Path(f"build-{board}/esp-idf/kconfigs.in")

shared-bindings/_bleio/CharacteristicBuffer.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ static void check_for_deinit(bleio_characteristic_buffer_obj_t *self) {
7979
//| :return: Data read
8080
//| :rtype: bytes or None"""
8181
//| ...
82+
//|
8283
//| def readinto(self, buf: WriteableBuffer, nbytes: Optional[int] = None) -> Optional[int]:
8384
//| """Read bytes into the ``buf``. Read at most ``len(buf)`` bytes.
8485
//|
@@ -87,6 +88,7 @@ static void check_for_deinit(bleio_characteristic_buffer_obj_t *self) {
8788
//| :return: number of bytes read and stored into ``buf``
8889
//| :rtype: int or None (on a non-blocking error)"""
8990
//| ...
91+
//|
9092
//| def readline(self) -> bytes:
9193
//| """Read a line, ending in a newline character.
9294
//|

shared-bindings/_bleio/Connection.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ void bleio_connection_ensure_connected(bleio_connection_obj_t *self) {
5252
//| Connections may also be made when another device initiates a connection. To use a Connection
5353
//| created by a peer, read the `Adapter.connections` property."""
5454
//| ...
55+
//|
5556
//| def disconnect(self) -> None:
5657
//| """Disconnects from the remote peripheral. Does nothing if already disconnected."""
5758
//| ...

shared-bindings/_bleio/Descriptor.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
//| and attached to a Characteristic by calling `add_to_characteristic()`.
2525
//| Remote Descriptor objects are created by `Connection.discover_remote_services()`
2626
//| as part of remote Characteristics in the remote Services that are discovered."""
27+
//|
2728
//| @classmethod
2829
//| def add_to_characteristic(
2930
//| cls,

shared-bindings/_bleio/ScanEntry.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
//| def __init__(self) -> None:
2525
//| """Cannot be instantiated directly. Use `_bleio.Adapter.start_scan`."""
2626
//| ...
27+
//|
2728
//| def matches(self, prefixes: ReadableBuffer, *, match_all: bool = True) -> bool:
2829
//| """Returns True if the ScanEntry matches all prefixes when ``match_all`` is True. This is stricter
2930
//| than the scan filtering which accepts any advertisements that match any of the prefixes

shared-bindings/_bleio/ScanResults.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@ static mp_obj_t scanresults_iternext(mp_obj_t self_in) {
2929
//| def __init__(self) -> None:
3030
//| """Cannot be instantiated directly. Use `_bleio.Adapter.start_scan`."""
3131
//| ...
32+
//|
3233
//| def __iter__(self) -> Iterator[ScanEntry]:
3334
//| """Returns itself since it is the iterator."""
3435
//| ...
36+
//|
3537
//| def __next__(self) -> ScanEntry:
3638
//| """Returns the next `_bleio.ScanEntry`. Blocks if none have been received and scanning is still
3739
//| active. Raises `StopIteration` if scanning is finished and no other results are available.

shared-bindings/_pixelmap/PixelMap.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,15 @@ MP_DEFINE_CONST_FUN_OBJ_2(pixelmap_pixelmap_indices_obj, pixelmap_pixelmap_indic
140140
//| def __getitem__(self, index: slice) -> PixelReturnSequence:
141141
//| """Retrieve the value of the underlying pixels."""
142142
//| ...
143+
//|
143144
//| @overload
144145
//| def __getitem__(self, index: int) -> PixelReturnType:
145146
//| """Retrieve the value of one of the underlying pixels at 'index'."""
146147
//| ...
148+
//|
147149
//| @overload
148150
//| def __setitem__(self, index: slice, value: PixelSequence) -> None: ...
151+
//|
149152
//| @overload
150153
//| def __setitem__(self, index: int, value: PixelType) -> None:
151154
//| """Sets the pixel value at the given index. Value can either be a tuple or integer. Tuples are

shared-bindings/adafruit_pixelbuf/PixelBuf.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,14 +248,17 @@ static MP_DEFINE_CONST_FUN_OBJ_2(pixelbuf_pixelbuf_fill_obj, pixelbuf_pixelbuf_f
248248
//| between 0 and 255. When in PWM (DotStar) mode, the 4th tuple value is a float of the pixel
249249
//| intensity from 0-1.0."""
250250
//| ...
251+
//|
251252
//| @overload
252253
//| def __getitem__(self, index: int) -> PixelReturnType:
253254
//| """Returns the pixel value at the given index as a tuple of (Red, Green, Blue[, White]) values
254255
//| between 0 and 255. When in PWM (DotStar) mode, the 4th tuple value is a float of the pixel
255256
//| intensity from 0-1.0."""
256257
//| ...
258+
//|
257259
//| @overload
258260
//| def __setitem__(self, index: slice, value: PixelSequence) -> None: ...
261+
//|
259262
//| @overload
260263
//| def __setitem__(self, index: int, value: PixelType) -> None:
261264
//| """Sets the pixel value at the given index. Value can either be a tuple or integer. Tuples are

shared-bindings/alarm/SleepMemory.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,12 @@
3333
//| def __init__(self) -> None:
3434
//| """Not used. Access the sole instance through `alarm.sleep_memory`."""
3535
//| ...
36+
//|
3637
//| def __bool__(self) -> bool:
3738
//| """``sleep_memory`` is ``True`` if its length is greater than zero.
3839
//| This is an easy way to check for its existence.
3940
//| """
41+
//|
4042
//| ...
4143
//| def __len__(self) -> int:
4244
//| """Return the length. This is used by (`len`)"""
@@ -65,6 +67,7 @@ static MP_DEFINE_CONST_DICT(alarm_sleep_memory_locals_dict, alarm_sleep_memory_l
6567
//| def __getitem__(self, index: int) -> int:
6668
//| """Returns the value at the given index."""
6769
//| ...
70+
//|
6871
//| @overload
6972
//| def __setitem__(self, index: slice, value: ReadableBuffer) -> None: ...
7073
//| @overload

0 commit comments

Comments
 (0)