Skip to content

Commit 14304a8

Browse files
committed
Added the forgotten validation
1 parent 43a6cb1 commit 14304a8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/mplfinance/plotting.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,9 +304,10 @@ def _valid_plot_kwargs():
304304
'Description' : 'fill between specification as y-value, or sequence of'+
305305
' y-values, or dict containing key "y1" plus any additional'+
306306
' kwargs for `fill_between()`',
307-
'Validator' : lambda value: _num_or_seq_of_num(value) or
307+
'Validator' : lambda value: _num_or_seq_of_num(value) or
308308
(isinstance(value,dict) and 'y1' in value and
309-
_num_or_seq_of_num(value['y1'])) },
309+
_num_or_seq_of_num(value['y1'])) or
310+
isinstance(value,(list,tuple))},
310311

311312
'tight_layout' : { 'Default' : False,
312313
'Description' : 'True|False implement tight layout (minimal padding around Figure)'+

0 commit comments

Comments
 (0)