Skip to content

Commit dc3cd83

Browse files
committed
docs: autolink "tuple" in ColorPacket
Link to Python's documentation for the "tuple" built-in type so readers can easily understand this term.
1 parent 4e4675c commit dc3cd83

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

adafruit_bluefruit_connect/color_packet.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ class ColorPacket(Packet):
4444
_TYPE_HEADER = b"!C"
4545

4646
def __init__(self, color):
47-
"""Construct a ColorPacket from a 3-tuple of RGB values,
48-
or from an int color value 0xRRGGBB.
47+
"""Construct a ColorPacket from a 3-element :class:`tuple` of RGB
48+
values, or from an int color value 0xRRGGBB.
4949
50-
:param tuple/int color: an RGB tuple ``(red, green, blue)``
50+
:param tuple/int color: an RGB :class:`tuple` ``(red, green, blue)``
5151
or an int color value ``0xRRGGBB``
5252
"""
5353
if isinstance(color, int):

0 commit comments

Comments
 (0)