mirror of
https://github.com/clearml/clearml
synced 2025-02-07 05:18:50 +00:00
Black formatting
This commit is contained in:
parent
7e12c47137
commit
ffcda558e7
@ -43,11 +43,7 @@ def input_int(
|
|||||||
)
|
)
|
||||||
return value
|
return value
|
||||||
except ValueError:
|
except ValueError:
|
||||||
print(
|
print("Invalid input: {} should be a number. Please enter an integer".format(key))
|
||||||
"Invalid input: {} should be a number. Please enter an integer".format(
|
|
||||||
key
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
def input_bool(question, default=False):
|
def input_bool(question, default=False):
|
||||||
@ -86,13 +82,13 @@ def input_list(
|
|||||||
res_list = [res]
|
res_list = [res]
|
||||||
while input_bool("\nDefine another {}? [y/N]".format(key)):
|
while input_bool("\nDefine another {}? [y/N]".format(key)):
|
||||||
response = get_input(
|
response = get_input(
|
||||||
key=key,
|
key=key,
|
||||||
description=description,
|
description=description,
|
||||||
question=question,
|
question=question,
|
||||||
required=False,
|
required=False,
|
||||||
default=default,
|
default=default,
|
||||||
new_line=new_line,
|
new_line=new_line,
|
||||||
)
|
)
|
||||||
if response:
|
if response:
|
||||||
res_list.append(response)
|
res_list.append(response)
|
||||||
return res_list
|
return res_list
|
||||||
|
Loading…
Reference in New Issue
Block a user