Show More
@@ -978,6 +978,8 b' class List(Instance):' | |||||
978 | args = ((),) |
|
978 | args = ((),) | |
979 | elif isinstance(default_value, SequenceTypes): |
|
979 | elif isinstance(default_value, SequenceTypes): | |
980 | args = (default_value,) |
|
980 | args = (default_value,) | |
|
981 | else: | |||
|
982 | raise TypeError('default value of List was %s' % default_value) | |||
981 |
|
983 | |||
982 | super(List,self).__init__(klass=list, args=args, |
|
984 | super(List,self).__init__(klass=list, args=args, | |
983 | allow_none=allow_none, **metadata) |
|
985 | allow_none=allow_none, **metadata) |
General Comments 0
You need to be logged in to leave comments.
Login now