CoinAmt: Python 3.15 fix

This commit is contained in:
The MMGen Project 2026-05-21 12:09:33 +00:00
commit 8488755790
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
2 changed files with 2 additions and 2 deletions

View file

@ -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__})')

View file

@ -1 +1 @@
16.1.0
16.2.dev0