Skip to content

Commit 4b46d5a

Browse files
committed
sklearn 2.7 compatibility
1 parent d1b57d3 commit 4b46d5a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

openml/flows/functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def flow_exists(name, version):
9191
"""
9292
if not (isinstance(name, six.string_types) and len(name) > 0):
9393
raise ValueError('Argument \'name\' should be a non-empty string')
94-
if not (type(version) is str and len(version) > 0):
94+
if not (isinstance(name, six.string_types) and len(version) > 0):
9595
raise ValueError('Argument \'version\' should be a non-empty string')
9696

9797
xml_response = _perform_api_call("flow/exists",

0 commit comments

Comments
 (0)