Skip to content

Commit 3a9ce92

Browse files
add doc for function
1 parent 13b2d8b commit 3a9ce92

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/mplfinance/_arg_validators.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ def _check_and_prepare_data(data, config):
9595
return dates, opens, highs, lows, closes, volumes
9696

9797
def _label_validator(label_value):
98+
''' Validates the input of labels for the added plots.
99+
label_value may be a str or a list of str.
100+
'''
98101
if isinstance(label_value,str):
99102
return True
100103
elif not isinstance(label_value,(tuple,list)):

0 commit comments

Comments
 (0)