From fdc6dc9205e5d7df530bc8b8d900309999fbc842 Mon Sep 17 00:00:00 2001 From: Alec Delaney Date: Mon, 30 May 2022 22:29:07 -0400 Subject: [PATCH 1/2] Specify targets for Sphinx --- adafruit_ble/advertising/__init__.py | 2 +- adafruit_ble/advertising/standard.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/adafruit_ble/advertising/__init__.py b/adafruit_ble/advertising/__init__.py index bc2412d..1a37935 100644 --- a/adafruit_ble/advertising/__init__.py +++ b/adafruit_ble/advertising/__init__.py @@ -206,7 +206,7 @@ class Advertisement: """ match_prefixes = () - """For Advertisement, `matches` will always return True. Subclasses may override this value.""" + """For Advertisement, `Advertisement.matches` will always return True. Subclasses may override this value.""" # cached bytes of merged prefixes. _prefix_bytes = None diff --git a/adafruit_ble/advertising/standard.py b/adafruit_ble/advertising/standard.py index 2f11c6c..7192f95 100644 --- a/adafruit_ble/advertising/standard.py +++ b/adafruit_ble/advertising/standard.py @@ -207,7 +207,7 @@ class ManufacturerData(AdvertisingDataField): company_id and the data is structured like an advertisement with a configurable key format. The order of the serialized data is determined by the order that the `ManufacturerDataField` attributes are set in - this can be useful for - `match_prefixes` in an `Advertisement` sub-class.""" + `Advertisement.match_prefixes` in an `Advertisement` sub-class.""" def __init__( self, obj, *, advertising_data_type=0xFF, company_id, key_encoding="B" From c8528e142e125d4a171a193f83a85bdf161936e2 Mon Sep 17 00:00:00 2001 From: Alec Delaney Date: Mon, 30 May 2022 22:31:21 -0400 Subject: [PATCH 2/2] Split line to reduce line length --- adafruit_ble/advertising/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/adafruit_ble/advertising/__init__.py b/adafruit_ble/advertising/__init__.py index 1a37935..8baf7ba 100644 --- a/adafruit_ble/advertising/__init__.py +++ b/adafruit_ble/advertising/__init__.py @@ -206,7 +206,8 @@ class Advertisement: """ match_prefixes = () - """For Advertisement, `Advertisement.matches` will always return True. Subclasses may override this value.""" + """For Advertisement, `Advertisement.matches` will always return ``True``. + Subclasses may override this value.""" # cached bytes of merged prefixes. _prefix_bytes = None