Skip to content

Commit 6d0ffb1

Browse files
committed
P3K: Cannot compare list to tuple.
1 parent c63b7a1 commit 6d0ffb1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sklearn/utils/fixes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ def _unique(ar, return_index=False, return_inverse=False):
107107
except ValueError:
108108
# x may be of the form dev-1ea1592
109109
np_version.append(x)
110+
np_version = tuple(np_version)
110111

111112
if np_version[:2] < (1, 5):
112113
unique = _unique

0 commit comments

Comments
 (0)