From 57724e8bdc6205923898255c8cc8eaf1e20f786d Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Wed, 11 Oct 2023 12:58:50 +0000 Subject: [PATCH] pylint throughout (excluding tests) - return from __init__() --- mmgen/filename.py | 4 ++-- mmgen/mn_entry.py | 4 ++-- mmgen/obj.py | 2 +- mmgen/proto/eth/daemon.py | 2 +- mmgen/tw/bal.py | 2 +- mmgen/wallet/enc.py | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/mmgen/filename.py b/mmgen/filename.py index ffd0dd53..acf5f472 100755 --- a/mmgen/filename.py +++ b/mmgen/filename.py @@ -64,7 +64,7 @@ class File: class FileList(list): def __init__(self,fns,write=False): - return list.__init__( + list.__init__( self, [File(fn,write) for fn in fns] ) @@ -105,7 +105,7 @@ class MMGenFile(File): class MMGenFileList(FileList): def __init__(self,fns,base_class,proto=None,write=False): - return list.__init__( + list.__init__( self, [MMGenFile( fn, base_class=base_class, proto=proto, write=write ) for fn in fns] ) diff --git a/mmgen/mn_entry.py b/mmgen/mn_entry.py index edb76d7b..72503f07 100755 --- a/mmgen/mn_entry.py +++ b/mmgen/mn_entry.py @@ -107,7 +107,7 @@ class MnEntryModeShort(MnEntryMode): def __init__(self,mne): if mne.wl_id == 'bip39': self.prompt_info += ' ' + self.prompt_info_bip39_add.strip() - return super().__init__(mne) + super().__init__(mne) @property def ss_len(self): @@ -150,7 +150,7 @@ class MnEntryModeFixed(MnEntryMode): def __init__(self,mne): self.len_diff = mne.uniq_ss_len - mne.shortest_word self.prompt_info += self.prompt_info_add[self.len_diff==1].lstrip() - return super().__init__(mne) + super().__init__(mne) @property def ss_len(self): diff --git a/mmgen/obj.py b/mmgen/obj.py index e9920442..d91c2f8a 100755 --- a/mmgen/obj.py +++ b/mmgen/obj.py @@ -59,7 +59,7 @@ class IndexedDict(dict): if args or kwargs: self.die('initializing values via constructor') self.__keylist = [] - return dict.__init__(self,*args,**kwargs) + dict.__init__(self,*args,**kwargs) def __setitem__(self,key,value): if key in self: diff --git a/mmgen/proto/eth/daemon.py b/mmgen/proto/eth/daemon.py index ff7de28e..cdc4e750 100755 --- a/mmgen/proto/eth/daemon.py +++ b/mmgen/proto/eth/daemon.py @@ -37,7 +37,7 @@ class ethereum_daemon(CoinDaemon): self.port_offset = daemon_idx_offset + getattr(self.network_port_offsets,self.network) - return super().__init__( *args, test_suite=test_suite, **kwargs ) + super().__init__( *args, test_suite=test_suite, **kwargs ) def get_rpc_port(self): return self.base_rpc_port + self.port_offset diff --git a/mmgen/tw/bal.py b/mmgen/tw/bal.py index 49b83a51..a6a4cb5e 100755 --- a/mmgen/tw/bal.py +++ b/mmgen/tw/bal.py @@ -41,7 +41,7 @@ class TwGetBalance(MMGenObject,metaclass=AsyncInit): 'ge_minconf': amt0, 'spendable': amt0, } - return dict.__init__(self,**data) + dict.__init__(self,**data) self.minconf = NonNegativeInt(minconf) self.balance_info = BalanceInfo diff --git a/mmgen/wallet/enc.py b/mmgen/wallet/enc.py index c47b5967..38f4720d 100755 --- a/mmgen/wallet/enc.py +++ b/mmgen/wallet/enc.py @@ -21,7 +21,7 @@ class wallet(wallet): def __init__(self,*args,**kwargs): from mmgen.crypto import Crypto self.crypto = Crypto(self.cfg) - return super().__init__(*args,**kwargs) + super().__init__(*args,**kwargs) def _decrypt_retry(self): while True: