fix vector default type
This commit is contained in:
parent
977856b06f
commit
82240d8dbd
|
@ -333,7 +333,7 @@ class Vector(BaseList):
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def default(cls):
|
def default(cls):
|
||||||
return [cls.elem_type.default() for _ in range(cls.length)]
|
return cls(cls.elem_type.default() for _ in range(cls.length))
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def is_fixed_size(cls):
|
def is_fixed_size(cls):
|
||||||
|
|
Loading…
Reference in New Issue