Skip to content

Commit 1a74f94

Browse files
authored
Merge pull request #7 from adafruit/black-update
Black reformatting with Python 3 target.
2 parents 7ccbf23 + e0f9c45 commit 1a74f94

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

adafruit_ble_heart_rate.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,20 +58,20 @@
5858
)
5959
"""Namedtuple for measurement values.
6060
61-
.. py:attribute:: HeartRateMeasurementValues.heart_rate
61+
.. :attribute:: heart_rate:
6262
6363
Heart rate (int), in beats per minute.
6464
65-
.. py:attribute:: HeartRateMeasurementValues.contact
65+
.. :attribute:: contact:
6666
6767
``True`` if device is contacting the body, ``False`` if not,
6868
``None`` if device does not support contact detection.
6969
70-
.. py:attribute:: HeartRateMeasurementValues.energy_expended
70+
.. :attribute:: energy_expended:
7171
7272
Energy expended (int), in kilo joules, or ``None`` if no value.
7373
74-
.. py:attribute:: HeartRateMeasurementValues.rr_intervals
74+
.. :attribute:: rr_intervals:
7575
7676
Sequence of RR intervals, measuring the time between
7777
beats. Oldest first, in ints that are units of 1024ths of a second.

docs/conf.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,18 @@
3838
master_doc = "index"
3939

4040
# General information about the project.
41-
project = u"Adafruit BLE_Heart_Rate Library"
42-
copyright = u"2020 Adafruit Industries"
43-
author = u"Adafruit Industries"
41+
project = "Adafruit BLE_Heart_Rate Library"
42+
copyright = "2020 Adafruit Industries"
43+
author = "Adafruit Industries"
4444

4545
# The version info for the project you're documenting, acts as replacement for
4646
# |version| and |release|, also used in various other places throughout the
4747
# built documents.
4848
#
4949
# The short X.Y version.
50-
version = u"1.0"
50+
version = "1.0"
5151
# The full version, including alpha/beta/rc tags.
52-
release = u"1.0"
52+
release = "1.0"
5353

5454
# The language for content autogenerated by Sphinx. Refer to documentation
5555
# for a list of supported languages.
@@ -140,7 +140,7 @@
140140
(
141141
master_doc,
142142
"AdafruitBLE_Heart_RateLibrary.tex",
143-
u"AdafruitBLE_Heart_Rate Library Documentation",
143+
"AdafruitBLE_Heart_Rate Library Documentation",
144144
author,
145145
"manual",
146146
),
@@ -154,7 +154,7 @@
154154
(
155155
master_doc,
156156
"AdafruitBLE_Heart_Ratelibrary",
157-
u"Adafruit BLE_Heart_Rate Library Documentation",
157+
"Adafruit BLE_Heart_Rate Library Documentation",
158158
[author],
159159
1,
160160
)
@@ -169,7 +169,7 @@
169169
(
170170
master_doc,
171171
"AdafruitBLE_Heart_RateLibrary",
172-
u"Adafruit BLE_Heart_Rate Library Documentation",
172+
"Adafruit BLE_Heart_Rate Library Documentation",
173173
author,
174174
"AdafruitBLE_Heart_RateLibrary",
175175
"One line description of project.",

0 commit comments

Comments
 (0)