Add __divmod__ to numeric types (#1900)

Helps with #1889
This commit is contained in:
David Euresti
2018-02-18 16:59:12 -08:00
committed by Jelle Zijlstra
parent b6bd58268b
commit 8ecb74012a
3 changed files with 10 additions and 0 deletions

View File

@@ -62,6 +62,8 @@ class Fraction(Rational):
def __rfloordiv__(self, other) -> int: ...
def __mod__(self, other): ...
def __rmod__(self, other): ...
def __divmod__(self, other): ...
def __rdivmod__(self, other): ...
def __pow__(self, other): ...
def __rpow__(self, other): ...