mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 14:42:40 +01:00
pylightning: adds Millisatoshi __radd__ method for sum()
This commit is contained in:
parent
0e2ec27576
commit
c0069d8944
1 changed files with 3 additions and 0 deletions
|
@ -157,6 +157,9 @@ class Millisatoshi:
|
|||
def __mod__(self, other):
|
||||
return Millisatoshi(int(self) % other)
|
||||
|
||||
def __radd__(self, other):
|
||||
return Millisatoshi(int(self) + int(other))
|
||||
|
||||
|
||||
class UnixDomainSocketRpc(object):
|
||||
def __init__(self, socket_path, executor=None, logger=logging, encoder_cls=json.JSONEncoder, decoder=json.JSONDecoder()):
|
||||
|
|
Loading…
Add table
Reference in a new issue