tfchain/TFChainWallet.py
def balance_add(self, other):
        """
        Merge the content of the other balance into this balance.
        If other is None, this call results in a no-op.

        Always assign the result, as it could other than self,
        should the class type be changed in order to add all content correctly.
        """
        if other is None:
            return self
        if not isinstance(other, MultiSigWalletBalance):
            if isinstance(other, (WalletBalance, WalletsBalance)):
                return WalletsBalance().balance_add(self).balance_add(self)
            # can only merge 2 multi-signature wallet balances
            raise TypeError("other balance has to be of type multi-signature wallet balance")
        if self.address != other.addres:
            raise ValueError("other balance is for a different MultiSignature Wallet, cannot be merged")
        # piggy-back on the super class for the actual merge logic
        return super().balance_add(other._base)

        Merge the content of the other balance into this balance.
        If other is None, this call results in a no-op.

        Always assign the result, as it could other than self,
        should the class type be changed in order to add all content correctly.
        
Merge the content of the other balance into this balance.
If other is None, this call results in a no-op.

Always assign the result, as it could other than self,
should the class type be changed in order to add all content correctly.
Merge the content of the other balance into this balance . If other is None this call results in a no - op . Always assign the result as it could other than self should the class type be changed in order to add all content correctly .
def balance_add(self, other):
        if other is None:
            return self
        if not isinstance(other, MultiSigWalletBalance):
            if isinstance(other, (WalletBalance, WalletsBalance)):
                return WalletsBalance().balance_add(self).balance_add(self)
            raise TypeError("other balance has to be of type multi-signature wallet balance")
        if self.address != other.addres:
            raise ValueError("other balance is for a different MultiSignature Wallet, cannot be merged")
        return super().balance_add(other._base)
def balance_add ( self , other ) : if other is None : return self if not isinstance ( other , MultiSigWalletBalance ) : if isinstance ( other , ( WalletBalance , WalletsBalance ) ) : return WalletsBalance ( ) . balance_add ( self ) . balance_add ( self ) raise TypeError ( "other balance has to be of type multi-signature wallet balance" ) if self . address != other . addres : raise ValueError ( "other balance is for a different MultiSignature Wallet, cannot be merged" ) return super ( ) . balance_add ( other . _base )
Merge the content of the other balance into this balance.
Merge the content of the other balance into this balance .
"""
        Merge the content of the other balance into this balance.
        If other is None, this call results in a no-op.

        Always assign the result, as it could other than self,
        should the class type be changed in order to add all content correctly.
        """ # can only merge 2 multi-signature wallet balances # piggy-back on the super class for the actual merge logic
self
other