8000 Revert formatting change · scikit-learn/scikit-learn@3018864 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3018864

Browse files
committed
Revert formatting change
1 parent 7810906 commit 3018864

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sklearn/utils/multiclass.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,8 @@ def type_of_target(y):
235235
>>> type_of_target(np.array([[0, 1], [1, 1]]))
236236
'multilabel-indicator'
237237
"""
238-
valid = ((isinstance(y, (Sequence, spmatrix))
239-
or hasattr(y, '__array__')) and not isinstance(y, string_types))
238+
valid = ((isinstance(y, (Sequence, spmatrix)) or hasattr(y, '__array__'))
239+
and not isinstance(y, string_types))
240240

241241
if not valid:
242242
raise ValueError('Expected array-like (array or non-string sequence), '

0 commit comments

Comments
 (0)
0