Skip to content

Commit f6d19be

Browse files
committed
Corrections on docstrings.
1 parent d977b14 commit f6d19be

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

adafruit_display_text/__init__.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -180,14 +180,14 @@ class LabelBase(Group):
180180
:param int scale: Integer value of the pixel scaling
181181
:param bool save_text: Set True to save the text string as a constant in the
182182
label structure. Set False to reduce memory use.
183-
:param: bool base_alignment: when True allows to align text label to the baseline.
183+
:param bool base_alignment: when True allows to align text label to the baseline.
184184
This is helpful when two or more labels need to be aligned to the same baseline
185-
:param: (int,str) tab_replacement: tuple with tab character replace information. When
185+
:param (int,str) tab_replacement: tuple with tab character replace information. When
186186
(4, " ") will indicate a tab replacement of 4 spaces, defaults to 4 spaces by
187187
tab character
188-
:param: str label_direction: string defining the label text orientation. There are 5
189-
configurations possibles ``LTR``:Left-To-Right ``RTL``:Right-To-Left
190-
``TTB``:TTB Top-To-Bottom ``UPR``:Upwards ``DWR``:Downwards. It defaults to ``LTR``"""
188+
:param str label_direction: string defining the label text orientation. There are 5
189+
configurations possibles ``LTR``-Left-To-Right ``RTL``-Right-To-Left
190+
``TTB``-Top-To-Bottom ``UPR``-Upwards ``DWR``-Downwards. It defaults to ``LTR``"""
191191

192192
# pylint: disable=unused-argument, too-many-instance-attributes, too-many-locals, too-many-arguments
193193
def __init__(

adafruit_display_text/bitmap_label.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ class Label(LabelBase):
7272
:param int scale: Integer value of the pixel scaling
7373
:param bool save_text: Set True to save the text string as a constant in the
7474
label structure. Set False to reduce memory use.
75-
:param: bool base_alignment: when True allows to align text label to the baseline.
75+
:param bool base_alignment: when True allows to align text label to the baseline.
7676
This is helpful when two or more labels need to be aligned to the same baseline
77-
:param: (int,str) tab_replacement: tuple with tab character replace information. When
77+
:param (int,str) tab_replacement: tuple with tab character replace information. When
7878
(4, " ") will indicate a tab replacement of 4 spaces, defaults to 4 spaces by
7979
tab character"""
8080

adafruit_display_text/label.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,12 @@ class Label(LabelBase):
6464
:param int scale: Integer value of the pixel scaling
6565
:param bool base_alignment: when True allows to align text label to the baseline.
6666
This is helpful when two or more labels need to be aligned to the same baseline
67-
:param: (int,str) tab_replacement: tuple with tab character replace information. When
67+
:param (int,str) tab_replacement: tuple with tab character replace information. When
6868
(4, " ") will indicate a tab replacement of 4 spaces, defaults to 4 spaces by
69-
tab character"""
69+
tab character
70+
:param str label_direction: string defining the label text orientation. There are 5
71+
configurations possibles ``LTR``-Left-To-Right ``RTL``-Right-To-Left
72+
``TTB``-Top-To-Bottom ``UPR``-Upwards ``DWR``-Downwards. It defaults to ``LTR``"""
7073

7174
# pylint: disable=too-many-instance-attributes, too-many-locals
7275
# This has a lot of getters/setters, maybe it needs cleanup.

0 commit comments

Comments
 (0)