CoinAmt: Python 3.15 fix
This commit is contained in:
parent
b29b8b4b9c
commit
8488755790
2 changed files with 2 additions and 2 deletions
|
|
@ -138,7 +138,7 @@ class CoinAmt(Decimal, Hilite, InitErrors): # abstract class
|
|||
|
||||
def __sub__(self, other, *args, **kwargs):
|
||||
if type(other) is type(self):
|
||||
return type(self)(Decimal.__sub__(self, other, *args, **kwargs), from_decimal=True)
|
||||
return type(self)(Decimal.__sub__(Decimal(self), Decimal(other), *args, **kwargs), from_decimal=True)
|
||||
raise TypeError(
|
||||
f'operand {other} is of incorrect type ({type(other).__name__} != {type(self).__name__})')
|
||||
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
16.1.0
|
||||
16.2.dev0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue