Commit d58c98d7 authored by Andrew Godwin's avatar Andrew Godwin
Browse files

Fix proxy objects to respect !=

parent 38a8cf1c
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -147,6 +147,11 @@ def lazy(func, *resultclasses):
            else:
                return func(*self.__args, **self.__kw)

        def __ne__(self, other):
            if isinstance(other, Promise):
                other = other.__cast()
            return self.__cast() != other

        def __eq__(self, other):
            if isinstance(other, Promise):
                other = other.__cast()