Skip to content
Snippets Groups Projects
Commit d501a6f2 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

tests for Proxy

parent 07468493
No related branches found
No related tags found
No related merge requests found
...@@ -310,15 +310,27 @@ class Proxy(tp.Generic[T]): ...@@ -310,15 +310,27 @@ class Proxy(tp.Generic[T]):
@wrap_operation @wrap_operation
def __neg__(self): def __neg__(self):
return self.__obj.__neg__() return -self.__obj
@wrap_operation @wrap_operation
def __pos__(self): def __pos__(self):
return self.__obj.__pow__() return +self.__obj
@wrap_operation @wrap_operation
def __invert__(self): def __invert__(self):
return self.__obj.__invert__() return ~self.__obj
@wrap_operation
def __matmul__(self, other):
return self.__obj @ other
def __imatmul__(self, other):
self.__obj @= other
return self
@wrap_operation
def __rmatmul__(self, other):
return other @ self.__obj
def __index__(self) -> int: def __index__(self) -> int:
return self.__obj.__index__() return self.__obj.__index__()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment