pylint throughout (excluding tests) - return from __init__()
This commit is contained in:
parent
7cb0e439e2
commit
57724e8bdc
6 changed files with 8 additions and 8 deletions
|
|
@ -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] )
|
||||
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue