PY-24777 allow tuples for optparse arguments

This commit is contained in:
Ilya.Kazakevich
2017-06-27 23:49:17 +03:00
parent bd6c40caa0
commit a03ffc5fe7
@@ -17,6 +17,6 @@ def get_opt_type(opt):
if opt.type in ["int", "long"]:
return "int"
elif opt.choices:
assert isinstance(opt.choices, list), "Choices should be list"
assert isinstance(opt.choices, (list, tuple)), "Choices should be list or tuple"
return opt.choices
return "str"