Skip to content

Commit e68cbd8

Browse files
committed
docs: fix wrong versionadded directive syntax
1 parent d33fb59 commit e68cbd8

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

bleak/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ async def start(self) -> None:
156156
BleakBluetoothNotAvailableError:
157157
if Bluetooth is not currently available
158158
159-
.. versionchanged: unreleased
159+
.. versionchanged:: unreleased
160160
Now raises :class:`BleakBluetoothNotAvailableError` instead of :class:`BleakError`
161161
when Bluetooth is not currently available.
162162
"""

bleak/backends/bluezdbus/manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ def get_default_adapter(self) -> str:
375375
BleakBluetoothNotAvailableError:
376376
if there are no Bluetooth Low Energy adapters or if none of the adapters are powered
377377
378-
.. versionchanged: unreleased
378+
.. versionchanged:: unreleased
379379
Now raises :class:`BleakBluetoothNotAvailableError` instead of :class:`BleakError`.
380380
"""
381381
if not any(self._adapters):

bleak/exc.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class BleakBluetoothNotAvailableReason(enum.Enum):
1414
"""
1515
Reasons for Bluetooth not being available.
1616
17-
... versionadded: unreleased
17+
.. versionadded:: unreleased
1818
"""
1919

2020
NO_BLUETOOTH = enum.auto()
@@ -52,7 +52,7 @@ class BleakBluetoothNotAvailableError(BleakError):
5252
"""
5353
Exception which is raised if the Bluetooth access is not available for some reason.
5454
55-
.. versionadded: unreleased
55+
.. versionadded:: unreleased
5656
"""
5757

5858
def __init__(self, msg: str, reason: BleakBluetoothNotAvailableReason) -> None:
@@ -70,7 +70,7 @@ class BleakCharacteristicNotFoundError(BleakError):
7070
"""
7171
Exception which is raised if a device does not support a characteristic.
7272
73-
.. versionadded: 0.22
73+
.. versionadded:: 0.22
7474
"""
7575

7676
char_specifier: Union[int, str, uuid.UUID]
@@ -89,7 +89,7 @@ class BleakDeviceNotFoundError(BleakError):
8989
Exception which is raised if a device can not be found by ``connect``, ``pair`` and ``unpair``.
9090
This is the case if the OS Bluetooth stack has never seen this device or it was removed and forgotten.
9191
92-
.. versionadded: 0.19
92+
.. versionadded:: 0.19
9393
"""
9494

9595
identifier: str

0 commit comments

Comments
 (0)