args in Params is a tuple
This commit is contained in:
parent
c726405601
commit
38509aeb4b
|
@ -25,7 +25,7 @@ class Params:
|
|||
if isinstance(args, Param):
|
||||
args = (args,)
|
||||
else:
|
||||
if not isinstance(args, (tuple, list)):
|
||||
if not isinstance(args, tuple):
|
||||
raise ValueError(_('args in params must be a list'))
|
||||
for arg in args:
|
||||
if not isinstance(arg, Param):
|
||||
|
@ -35,8 +35,6 @@ class Params:
|
|||
for arg in kwargs.values():
|
||||
if not isinstance(arg, Param):
|
||||
raise ValueError(_('arg in params must be a Param'))
|
||||
if isinstance(args, list):
|
||||
args = tuple(args)
|
||||
self.args = args
|
||||
self.kwargs = kwargs
|
||||
|
||||
|
|
Loading…
Reference in New Issue