Skip to content

Commit 81b86f1

Browse files
committed
COSMIT: fix indentation
1 parent 7768a30 commit 81b86f1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sklearn/utils/multiclass.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,7 @@ def type_of_target(y):
276276
>>> type_of_target(np.array([[0, 1], [1, 1]]))
277277
'multilabel-indicator'
278278
"""
279-
valid = ((isinstance(y, (Sequence, spmatrix))
280-
or hasattr(y, '__array__'))
279+
valid = ((isinstance(y, (Sequence, spmatrix)) or hasattr(y, '__array__'))
281280
and not isinstance(y, string_types))
282281
if not valid:
283282
raise ValueError('Expected array-like (array or non-string sequence), '

0 commit comments

Comments
 (0)