Remove __nonzero__ method

This commit is contained in:
Nikita Sobolev 2022-07-30 14:34:04 +03:00 committed by GitHub
parent 07c83ef8bb
commit cd77d0c96f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -143,10 +143,6 @@ class Range:
def __bool__(self):
return self._bounds is not None
def __nonzero__(self):
# Python 2 compatibility
return type(self).__bool__(self)
def __eq__(self, other):
if not isinstance(other, Range):
return False