Skip to content

Commit 033e973

Browse files
committed
Add missing functions in personal class.
1 parent 057c0ff commit 033e973

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Compiler/types.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2002,6 +2002,13 @@ def __setitem__(self, index, value):
20022002
self._san(value)
20032003
self._v[index] = value
20042004

2005+
def get_vector(self, *args, **kwargs):
2006+
return personal(self.player, self._v.get_vector(*args, **kwargs))
2007+
2008+
@property
2009+
def size(self):
2010+
return self._v.size
2011+
20052012
__getitem__ = lambda self, index: personal(self.player, self._v[index])
20062013

20072014
__add__ = lambda self, other: personal(self.player, self._san(other) + other)

0 commit comments

Comments
 (0)