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

tests for Proxy

parent 777eed4f
No related branches found
No related tags found
No related merge requests found
...@@ -316,8 +316,8 @@ class Proxy(tp.Generic[T]): ...@@ -316,8 +316,8 @@ class Proxy(tp.Generic[T]):
return self.__obj.__index__() return self.__obj.__index__()
@rethrow_as(AttributeError, TypeError) @rethrow_as(AttributeError, TypeError)
def __round__(self, n=None): def __round__(self, n: int = 0):
result = self.__obj.__round__(n) result = round(self.__obj, n)
if self.__wrap_operations: if self.__wrap_operations:
result = self.__class__(result) result = self.__class__(result)
......
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