Skip to content
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

Adding type hints #3107

Merged
merged 69 commits into from
Jul 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
7aa6898
Added type hints to analogio
evaherrada Jul 2, 2020
6fd6747
Added type hints for analogio
evaherrada Jul 2, 2020
cb259de
Did busio, fixed up analogio
evaherrada Jul 2, 2020
596f2f6
Merge branch 'type_hints' of https://github.com/dherrada/circuitpytho…
evaherrada Jul 2, 2020
d1664bd
Fixed extract_pyi script to allow NoneType
evaherrada Jul 2, 2020
1e96ca5
Made more modifications to extract_pyi.py
evaherrada Jul 2, 2020
627ecad
Did aesio
evaherrada Jul 2, 2020
427733a
More tweaks to extract_pyi.py
evaherrada Jul 2, 2020
2681bd5
Did audiobusio
evaherrada Jul 2, 2020
b26ee6c
Added type hints to audiocore
evaherrada Jul 2, 2020
3d1e005
Added type hints to audioio
evaherrada Jul 2, 2020
24bca06
Added type hints to audiomixer
evaherrada Jul 2, 2020
e114b31
Added type hints to audiomp3
evaherrada Jul 2, 2020
e169da3
More extract_pyi tweaks
evaherrada Jul 2, 2020
ed476a4
Added type hints to audiopwmio
evaherrada Jul 2, 2020
ffc5f0c
Added type hints to bitbangio
evaherrada Jul 2, 2020
ac113fd
Changed bytearray to a union
evaherrada Jul 2, 2020
522b17c
Made suggested changes
evaherrada Jul 2, 2020
54cb1fe
Removed all 'self, )'
evaherrada Jul 2, 2020
26f1fd0
Added type hints to _bleio
evaherrada Jul 2, 2020
51fd286
Added type hints to board
evaherrada Jul 2, 2020
dd27fdf
Added type hints to countio
evaherrada Jul 2, 2020
9b4ffc0
Changed unions to ReadableBuffer and WriteableBuffer
evaherrada Jul 2, 2020
783cc4d
Added type hints to displayio
evaherrada Jul 3, 2020
48ea227
Added type hints to fontio
evaherrada Jul 3, 2020
ca0e8ea
Added type hints to framebufferio
evaherrada Jul 3, 2020
5184144
Added type hints to frequencyio
evaherrada Jul 3, 2020
ff8604b
Added type hints to gamepad
evaherrada Jul 3, 2020
d73348f
Added type hints to gamepadshift
evaherrada Jul 3, 2020
6a3968d
Added type hints to gnss
evaherrada Jul 3, 2020
2e8b8c7
Added type hints to i2cperipheral
evaherrada Jul 3, 2020
0a8d9ee
Added type hints to microcontroller
evaherrada Jul 3, 2020
0abf45a
Added type hints to nvm
evaherrada Jul 3, 2020
e273b9a
Added type hints to _pew
evaherrada Jul 3, 2020
41f12a7
Added type hints to pixelbuf
evaherrada Jul 3, 2020
a2c7e27
Added type hints to ps2io
evaherrada Jul 3, 2020
93d2007
Added type hints to pulseio
evaherrada Jul 3, 2020
c8437e6
Added type hints to rgbmatrix
evaherrada Jul 3, 2020
d9a98bd
Added type hints to rotaryio
evaherrada Jul 3, 2020
48443ce
Added type hints to sdcardio
evaherrada Jul 3, 2020
71ec419
Added type hints to sdioio
evaherrada Jul 3, 2020
9116470
Added type hints to socket
evaherrada Jul 3, 2020
6e4c76a
Added type hints to _stage
evaherrada Jul 3, 2020
f822937
Added type hints to terminalio
evaherrada Jul 3, 2020
0a65709
Added type hints to touchio
evaherrada Jul 3, 2020
e089862
Added type hints to usb_hid
evaherrada Jul 3, 2020
9c842c5
Added type hints to usb_midi
evaherrada Jul 3, 2020
5163618
Added type hints to watchdog
evaherrada Jul 3, 2020
843ff5d
Added type hints to wiznet
evaherrada Jul 3, 2020
3df03a5
Made most of the requested changes
evaherrada Jul 3, 2020
d358c91
Fixed init formatting
evaherrada Jul 3, 2020
d0d949c
Made every init return None
evaherrada Jul 3, 2020
f56deb6
Added type hints to _eve
evaherrada Jul 3, 2020
591cc1a
Added type hints to math
evaherrada Jul 3, 2020
9122d0b
Added type hints to multiterminal
evaherrada Jul 3, 2020
aaa550b
Added type hints to network
evaherrada Jul 3, 2020
e237dfe
Added type hints to os
evaherrada Jul 3, 2020
97d405e
Added type hints to random
evaherrada Jul 3, 2020
a88004e
Added type hints to rtc
evaherrada Jul 3, 2020
45b6e01
Added type hints to storage
evaherrada Jul 3, 2020
4758081
Added type hints to struct
evaherrada Jul 3, 2020
4c5a9d1
Added type hints to time
evaherrada Jul 3, 2020
657c651
Added type hints to uheap
evaherrada Jul 3, 2020
9911b64
Added type hints to ustack
evaherrada Jul 3, 2020
bce77ad
Added type hints previously missed
evaherrada Jul 3, 2020
bfcaa4b
Made requested changes in displayio
evaherrada Jul 16, 2020
d64b4e3
Made more requested changes
evaherrada Jul 17, 2020
612c6bb
Merge branch 'main' into type_hints
evaherrada Jul 17, 2020
9e3fa86
Merge branch 'main' into type_hints
evaherrada Jul 21, 2020
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
26 changes: 13 additions & 13 deletions shared-bindings/_bleio/Adapter.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@
//| connections and also initiate connections."""
//|

//| def __init__(self, ):
//| def __init__(self) -> None:
//| """You cannot create an instance of `_bleio.Adapter`.
//| Use `_bleio.adapter` to access the sole instance available."""
//| ...
//|

//| enabled: Any = ...
//| enabled: bool = ...
//| """State of the BLE adapter."""
//|
STATIC mp_obj_t bleio_adapter_get_enabled(mp_obj_t self) {
Expand All @@ -95,7 +95,7 @@ const mp_obj_property_t bleio_adapter_enabled_obj = {
(mp_obj_t)&mp_const_none_obj },
};

//| address: Any = ...
//| address: Address = ...
//| """MAC address of the BLE adapter. (read-only)"""
//|
STATIC mp_obj_t bleio_adapter_get_address(mp_obj_t self) {
Expand All @@ -111,7 +111,7 @@ const mp_obj_property_t bleio_adapter_address_obj = {
(mp_obj_t)&mp_const_none_obj },
};

//| name: Any = ...
//| name: str = ...
//| """name of the BLE adapter used once connected.
//| The name is "CIRCUITPY" + the last four hex digits of ``adapter.address``,
//| to make it easy to distinguish multiple CircuitPython boards."""
Expand All @@ -135,7 +135,7 @@ const mp_obj_property_t bleio_adapter_name_obj = {
(mp_obj_t)&mp_const_none_obj },
};

//| def start_advertising(self, data: buf, *, scan_response: buf = None, connectable: bool = True, anonymous: bool = False, timeout: int = 0, interval: float = 0.1) -> Any:
//| def start_advertising(self, data: buf, *, scan_response: buf = None, connectable: bool = True, anonymous: bool = False, timeout: int = 0, interval: float = 0.1) -> None:
//| """Starts advertising until `stop_advertising` is called or if connectable, another device
//| connects to us.
//|
Expand Down Expand Up @@ -202,7 +202,7 @@ STATIC mp_obj_t bleio_adapter_start_advertising(mp_uint_t n_args, const mp_obj_t
}
STATIC MP_DEFINE_CONST_FUN_OBJ_KW(bleio_adapter_start_advertising_obj, 2, bleio_adapter_start_advertising);

//| def stop_advertising(self, ) -> Any:
//| def stop_advertising(self) -> None:
//| """Stop sending advertising packets."""
//| ...
//|
Expand All @@ -215,7 +215,7 @@ STATIC mp_obj_t bleio_adapter_stop_advertising(mp_obj_t self_in) {
}
STATIC MP_DEFINE_CONST_FUN_OBJ_1(bleio_adapter_stop_advertising_obj, bleio_adapter_stop_advertising);

//| def start_scan(self, prefixes: sequence = b"", *, buffer_size: int = 512, extended: bool = False, timeout: float = None, interval: float = 0.1, window: float = 0.1, minimum_rssi: int = -80, active: bool = True) -> Any:
//| def start_scan(self, prefixes: sequence = b"", *, buffer_size: int = 512, extended: bool = False, timeout: float = None, interval: float = 0.1, window: float = 0.1, minimum_rssi: int = -80, active: bool = True) -> iterable:
//| """Starts a BLE scan and returns an iterator of results. Advertisements and scan responses are
//| filtered and returned separately.
//|
Expand Down Expand Up @@ -288,7 +288,7 @@ STATIC mp_obj_t bleio_adapter_start_scan(size_t n_args, const mp_obj_t *pos_args
}
STATIC MP_DEFINE_CONST_FUN_OBJ_KW(bleio_adapter_start_scan_obj, 1, bleio_adapter_start_scan);

//| def stop_scan(self, ) -> Any:
//| def stop_scan(self) -> None:
//| """Stop the current scan."""
//| ...
//|
Expand All @@ -301,7 +301,7 @@ STATIC mp_obj_t bleio_adapter_stop_scan(mp_obj_t self_in) {
}
STATIC MP_DEFINE_CONST_FUN_OBJ_1(bleio_adapter_stop_scan_obj, bleio_adapter_stop_scan);

//| advertising: Any = ...
//| advertising: bool = ...
//| """True when the adapter is currently advertising. (read-only)"""
//|
STATIC mp_obj_t bleio_adapter_get_advertising(mp_obj_t self) {
Expand All @@ -317,7 +317,7 @@ const mp_obj_property_t bleio_adapter_advertising_obj = {
(mp_obj_t)&mp_const_none_obj },
};

//| connected: Any = ...
//| connected: bool = ...
//| """True when the adapter is connected to another device regardless of who initiated the
//| connection. (read-only)"""
//|
Expand All @@ -334,7 +334,7 @@ const mp_obj_property_t bleio_adapter_connected_obj = {
(mp_obj_t)&mp_const_none_obj },
};

//| connections: Any = ...
//| connections: tuple = ...
//| """Tuple of active connections including those initiated through
//| :py:meth:`_bleio.Adapter.connect`. (read-only)"""
//|
Expand All @@ -350,7 +350,7 @@ const mp_obj_property_t bleio_adapter_connections_obj = {
(mp_obj_t)&mp_const_none_obj },
};

//| def connect(self, address: Address, *, timeout: float/int) -> Any:
//| def connect(self, address: Address, *, timeout: float/int) -> Connection:
//| """Attempts a connection to the device with the given address.
//|
//| :param Address address: The address of the peripheral to connect to
Expand Down Expand Up @@ -380,7 +380,7 @@ STATIC mp_obj_t bleio_adapter_connect(mp_uint_t n_args, const mp_obj_t *pos_args
}
STATIC MP_DEFINE_CONST_FUN_OBJ_KW(bleio_adapter_connect_obj, 2, bleio_adapter_connect);

//| def erase_bonding(self, ) -> Any:
//| def erase_bonding(self) -> None:
//| """Erase all bonding information stored in flash memory."""
//| ...
//|
Expand Down
20 changes: 10 additions & 10 deletions shared-bindings/_bleio/Address.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
//| """Encapsulates the address of a BLE device."""
//|

//| def __init__(self, address: buf, address_type: Any):
//| def __init__(self, address: ReadableBuffer, address_type: int) -> None:
//| """Create a new Address object encapsulating the address value.
//| The value itself can be one of:
//|
Expand Down Expand Up @@ -77,8 +77,8 @@ STATIC mp_obj_t bleio_address_make_new(const mp_obj_type_t *type, size_t n_args,
return MP_OBJ_FROM_PTR(self);
}

//| address_bytes: Any = ...
//| r"""The bytes that make up the device address (read-only).
//| address_bytes: bytes = ...
//| """The bytes that make up the device address (read-only).
//|
//| Note that the ``bytes`` object returned is in little-endian order:
//| The least significant byte is ``address_bytes[0]``. So the address will
Expand Down Expand Up @@ -108,7 +108,7 @@ const mp_obj_property_t bleio_address_address_bytes_obj = {
(mp_obj_t)&mp_const_none_obj},
};

//| type: Any = ...
//| type: int = ...
//| """The address type (read-only).
//|
//| One of the integer values: `PUBLIC`, `RANDOM_STATIC`, `RANDOM_PRIVATE_RESOLVABLE`,
Expand All @@ -128,7 +128,7 @@ const mp_obj_property_t bleio_address_type_obj = {
(mp_obj_t)&mp_const_none_obj},
};

//| def __eq__(self, other: Any) -> Any:
//| def __eq__(self, other: Any) -> bool:
//| """Two Address objects are equal if their addresses and address types are equal."""
//| ...
//|
Expand All @@ -154,7 +154,7 @@ STATIC mp_obj_t bleio_address_binary_op(mp_binary_op_t op, mp_obj_t lhs_in, mp_o
}
}

//| def __hash__(self, ) -> Any:
//| def __hash__(self) -> int:
//| """Returns a hash for the Address data."""
//| ...
//|
Expand Down Expand Up @@ -187,17 +187,17 @@ STATIC void bleio_address_print(const mp_print_t *print, mp_obj_t self_in, mp_pr
buf[5], buf[4], buf[3], buf[2], buf[1], buf[0]);
}

//| PUBLIC: Any = ...
//| PUBLIC: int = ...
//| """A publicly known address, with a company ID (high 24 bits)and company-assigned part (low 24 bits)."""
//|
//| RANDOM_STATIC: Any = ...
//| RANDOM_STATIC: int = ...
//| """A randomly generated address that does not change often. It may never change or may change after
//| a power cycle."""
//|
//| RANDOM_PRIVATE_RESOLVABLE: Any = ...
//| RANDOM_PRIVATE_RESOLVABLE: int = ...
//| """An address that is usable when the peer knows the other device's secret Identity Resolving Key (IRK)."""
//|
//| RANDOM_PRIVATE_NON_RESOLVABLE: Any = ...
//| RANDOM_PRIVATE_NON_RESOLVABLE: int = ...
//| """A randomly generated address that changes on every connection."""
//|
STATIC const mp_rom_map_elem_t bleio_address_locals_dict_table[] = {
Expand Down
16 changes: 8 additions & 8 deletions shared-bindings/_bleio/Attribute.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,32 +36,32 @@
//| :py:class:`~Characteristic` and :py:class:`~Descriptor`,
//| but is not defined as a Python superclass of those classes."""
//|
//| def __init__(self, ):
//| def __init__(self) -> None:
//| """You cannot create an instance of :py:class:`~_bleio.Attribute`."""
//| ...
//|

STATIC const mp_rom_map_elem_t bleio_attribute_locals_dict_table[] = {

//| NO_ACCESS: Any = ...
//| NO_ACCESS: int = ...
//| """security mode: access not allowed"""
//|
//| OPEN: Any = ...
//| OPEN: int = ...
//| """security_mode: no security (link is not encrypted)"""
//|
//| ENCRYPT_NO_MITM: Any = ...
//| ENCRYPT_NO_MITM: int = ...
//| """security_mode: unauthenticated encryption, without man-in-the-middle protection"""
//|
//| ENCRYPT_WITH_MITM: Any = ...
//| ENCRYPT_WITH_MITM: int = ...
//| """security_mode: authenticated encryption, with man-in-the-middle protection"""
//|
//| LESC_ENCRYPT_WITH_MITM: Any = ...
//| LESC_ENCRYPT_WITH_MITM: int = ...
//| """security_mode: LESC encryption, with man-in-the-middle protection"""
//|
//| SIGNED_NO_MITM: Any = ...
//| SIGNED_NO_MITM: int = ...
//| """security_mode: unauthenticated data signing, without man-in-the-middle protection"""
//|
//| SIGNED_WITH_MITM: Any = ...
//| SIGNED_WITH_MITM: int = ...
//| """security_mode: authenticated data signing, without man-in-the-middle protection"""
//|
{ MP_ROM_QSTR(MP_QSTR_NO_ACCESS), MP_ROM_INT(SECURITY_MODE_NO_ACCESS) },
Expand Down
28 changes: 14 additions & 14 deletions shared-bindings/_bleio/Characteristic.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@
//| """Stores information about a BLE service characteristic and allows reading
//| and writing of the characteristic's value."""
//|
//| def __init__(self, ):
//| def __init__(self) -> None:
//| """There is no regular constructor for a Characteristic. A new local Characteristic can be created
//| and attached to a Service by calling `add_to_service()`.
//| Remote Characteristic objects are created by `Connection.discover_remote_services()`
//| as part of remote Services."""
//| ...
//|

//| def add_to_service(self, service: Service, uuid: UUID, *, properties: int = 0, read_perm: int = Attribute.OPEN, write_perm: int = Attribute.OPEN, max_length: int = 20, fixed_length: bool = False, initial_value: buf = None) -> Any:
//| def add_to_service(self, service: Service, uuid: UUID, *, properties: int = 0, read_perm: int = Attribute.OPEN, write_perm: int = Attribute.OPEN, max_length: int = 20, fixed_length: bool = False, initial_value: buf = None) -> Characteristic:
//| """Create a new Characteristic object, and add it to this Service.
//|
//| :param Service service: The service that will provide this characteristic
Expand Down Expand Up @@ -141,7 +141,7 @@ STATIC MP_DEFINE_CONST_CLASSMETHOD_OBJ(bleio_characteristic_add_to_service_obj,



//| properties: Any = ...
//| properties: int = ...
//| """An int bitmask representing which properties are set, specified as bitwise or'ing of
//| of these possible values.
//| `BROADCAST`, `INDICATE`, `NOTIFY`, `READ`, `WRITE`, `WRITE_NO_RESPONSE`."""
Expand All @@ -160,7 +160,7 @@ const mp_obj_property_t bleio_characteristic_properties_obj = {
(mp_obj_t)&mp_const_none_obj },
};

//| uuid: Any = ...
//| uuid: Optional[UUID] = ...
//| """The UUID of this characteristic. (read-only)
//|
//| Will be ``None`` if the 128-bit UUID for this characteristic is not known."""
Expand All @@ -180,7 +180,7 @@ const mp_obj_property_t bleio_characteristic_uuid_obj = {
(mp_obj_t)&mp_const_none_obj },
};

//| value: Any = ...
//| value: bytearray = ...
//| """The value of this characteristic."""
//|
STATIC mp_obj_t bleio_characteristic_get_value(mp_obj_t self_in) {
Expand Down Expand Up @@ -211,7 +211,7 @@ const mp_obj_property_t bleio_characteristic_value_obj = {
(mp_obj_t)&mp_const_none_obj },
};

//| descriptors: Any = ...
//| descriptors: Descriptor = ...
//| """A tuple of :py:class:`Descriptor` that describe this characteristic. (read-only)"""
//|
STATIC mp_obj_t bleio_characteristic_get_descriptors(mp_obj_t self_in) {
Expand Down Expand Up @@ -241,7 +241,7 @@ const mp_obj_property_t bleio_characteristic_descriptors_obj = {
(mp_obj_t)&mp_const_none_obj },
};

//| service: Any = ...
//| service: Service = ...
//| """The Service this Characteristic is a part of."""
//|
STATIC mp_obj_t bleio_characteristic_get_service(mp_obj_t self_in) {
Expand All @@ -258,7 +258,7 @@ const mp_obj_property_t bleio_characteristic_service_obj = {
(mp_obj_t)&mp_const_none_obj },
};

//| def set_cccd(self, *, notify: bool = False, indicate: float = False) -> Any:
//| def set_cccd(self, *, notify: bool = False, indicate: float = False) -> None:
//| """Set the remote characteristic's CCCD to enable or disable notification and indication.
//|
//| :param bool notify: True if Characteristic should receive notifications of remote writes
Expand Down Expand Up @@ -291,22 +291,22 @@ STATIC const mp_rom_map_elem_t bleio_characteristic_locals_dict_table[] = {
{ MP_ROM_QSTR(MP_QSTR_set_cccd), MP_ROM_PTR(&bleio_characteristic_set_cccd_obj) },

// Bitmask constants to represent properties
//| BROADCAST: Any = ...
//| BROADCAST: int = ...
//| """property: allowed in advertising packets"""
//|
//| INDICATE: Any = ...
//| INDICATE: int = ...
//| """property: server will indicate to the client when the value is set and wait for a response"""
//|
//| NOTIFY: Any = ...
//| NOTIFY: int = ...
//| """property: server will notify the client when the value is set"""
//|
//| READ: Any = ...
//| READ: int = ...
//| """property: clients may read this characteristic"""
//|
//| WRITE: Any = ...
//| WRITE: int = ...
//| """property: clients may write this characteristic; a response will be sent back"""
//|
//| WRITE_NO_RESPONSE: Any = ...
//| WRITE_NO_RESPONSE: int = ...
//| """property: clients may write this characteristic; no response will be sent back"""
//|
{ MP_ROM_QSTR(MP_QSTR_BROADCAST), MP_ROM_INT(CHAR_PROP_BROADCAST) },
Expand Down
14 changes: 7 additions & 7 deletions shared-bindings/_bleio/CharacteristicBuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ STATIC void raise_error_if_not_connected(bleio_characteristic_buffer_obj_t *self
//| class CharacteristicBuffer:
//| """Accumulates a Characteristic's incoming values in a FIFO buffer."""
//|
//| def __init__(self, characteristic: Characteristic, *, timeout: int = 1, buffer_size: int = 64):
//| def __init__(self, characteristic: Characteristic, *, timeout: int = 1, buffer_size: int = 64) -> None:
//|
//| """Monitor the given Characteristic. Each time a new value is written to the Characteristic
//| add the newly-written bytes to a FIFO buffer.
Expand Down Expand Up @@ -100,7 +100,7 @@ STATIC void check_for_deinit(bleio_characteristic_buffer_obj_t *self) {

// These are standard stream methods. Code is in py/stream.c.
//
//| def read(self, nbytes: Any = None) -> Any:
//| def read(self, nbytes: int = None) -> Optional[bytes]:
//| """Read characters. If ``nbytes`` is specified then read at most that many
//| bytes. Otherwise, read everything that arrives until the connection
//| times out. Providing the number of bytes expected is highly recommended
Expand All @@ -110,14 +110,14 @@ STATIC void check_for_deinit(bleio_characteristic_buffer_obj_t *self) {
//| :rtype: bytes or None"""
//| ...
//|
//| def readinto(self, buf: Any) -> Any:
//| def readinto(self, buf: WriteableBuffer) -> Optional[int]:
//| """Read bytes into the ``buf``. Read at most ``len(buf)`` bytes.
//|
//| :return: number of bytes read and stored into ``buf``
//| :rtype: int or None (on a non-blocking error)"""
//| ...
//|
//| def readline(self, ) -> Any:
//| def readline(self) -> bytes:
//| """Read a line, ending in a newline character.
//|
//| :return: the line read
Expand Down Expand Up @@ -167,7 +167,7 @@ STATIC mp_uint_t bleio_characteristic_buffer_ioctl(mp_obj_t self_in, mp_uint_t r
return ret;
}

//| in_waiting: Any = ...
//| in_waiting: int = ...
//| """The number of bytes in the input buffer, available to be read"""
//|
STATIC mp_obj_t bleio_characteristic_buffer_obj_get_in_waiting(mp_obj_t self_in) {
Expand All @@ -184,7 +184,7 @@ const mp_obj_property_t bleio_characteristic_buffer_in_waiting_obj = {
(mp_obj_t)&mp_const_none_obj},
};

//| def reset_input_buffer(self, ) -> Any:
//| def reset_input_buffer(self) -> None:
//| """Discard any unread characters in the input buffer."""
//| ...
//|
Expand All @@ -196,7 +196,7 @@ STATIC mp_obj_t bleio_characteristic_buffer_obj_reset_input_buffer(mp_obj_t self
}
STATIC MP_DEFINE_CONST_FUN_OBJ_1(bleio_characteristic_buffer_reset_input_buffer_obj, bleio_characteristic_buffer_obj_reset_input_buffer);

//| def deinit(self, ) -> Any:
//| def deinit(self) -> None:
//| """Disable permanently."""
//| ...
//|
Expand Down
Loading