Skip to content

Commit a3d1a48

Browse files
committed
fix: remove invalid dunder methods
Accidentally included python2 dunder methods that are no longer part of python3. For example, __irpow__ no longer exists, and instead only __ipow__ is used.
1 parent d49897c commit a3d1a48

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

NumpyDeque/NumpyDeque.py

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -784,48 +784,24 @@ def __itruediv__(self, other): # To get called on true division with assignment
784784
self.deque /= other
785785
return self
786786

787-
def __irtruediv__(self, other): # To get called on true division with assignment e.g. a /=b.
788-
if isinstance(other, NumpyDeque):
789-
other = other.deque
790-
self.deque /= other
791-
return self
792-
793787
def __ifloordiv__(self, other): # To get called on integer division with assignment e.g. a //=b.
794788
if isinstance(other, NumpyDeque):
795789
other = other.deque
796790
self.deque //= other
797791
return self
798792

799-
def __irfloordiv__(self, other): # To get called on integer division with assignment e.g. a //=b.
800-
if isinstance(other, NumpyDeque):
801-
other = other.deque
802-
self.deque //= other
803-
return self
804-
805793
def __imod__(self, other): # To get called on modulo with assignment e.g. a%=b.
806794
if isinstance(other, NumpyDeque):
807795
other = other.deque
808796
self.deque %= other
809797
return self
810798

811-
def __irmod__(self, other): # To get called on modulo with assignment e.g. a%=b.
812-
if isinstance(other, NumpyDeque):
813-
other = other.deque
814-
self.deque %= other
815-
return self
816-
817799
def __ipow__(self, other): # To get called on exponents with assignment e.g. a **=b.
818800
if isinstance(other, NumpyDeque):
819801
other = other.deque
820802
self.deque **= other
821803
return self
822804

823-
def __irpow__(self, other): # To get called on exponents with assignment e.g. a **=b.
824-
if isinstance(other, NumpyDeque):
825-
other = other.deque
826-
self.deque **= other
827-
return self
828-
829805
def __int__(self): # To get called by built-int int() method to convert a type to an int.
830806
return NumpyDeque.array(self.deque, self.maxsize, np.int32, None, self.priority, _force_buffer_size=self._bcap)
831807

0 commit comments

Comments
 (0)