ruff B026 (star-arg unpacking after keyword argument)
This commit is contained in:
parent
dfa3ef1e9e
commit
288d63bddb
3 changed files with 2 additions and 3 deletions
|
|
@ -375,7 +375,7 @@ def _get_obj(clsname, cfg, *args, coin=None, network='mainnet', infile=None, dat
|
|||
me.cfg = cfg
|
||||
me.proto = proto
|
||||
|
||||
me.__init__(infile=infile, data=data, *args, **kwargs)
|
||||
me.__init__(*args, infile=infile, data=data, **kwargs)
|
||||
|
||||
return me
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ class Completed(Base):
|
|||
|
||||
assert (filename or data) and not (filename and data), 'CompletedTX_chk1'
|
||||
|
||||
super().__init__(cfg=cfg, *args, **kwargs)
|
||||
super().__init__(*args, cfg=cfg, **kwargs)
|
||||
|
||||
if data:
|
||||
self.__dict__ = data | {'twctl': self.twctl}
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@ indent-style = "tab"
|
|||
ignore = [
|
||||
"B006", # Do not use mutable data structures for argument defaults
|
||||
"B018", # Found useless expression. Either assign it to a variable or remove it.
|
||||
"B026", # Star-arg unpacking after a keyword argument is strongly discouraged
|
||||
"BLE001", # Do not catch blind exception: `Exception`
|
||||
"E722", # bare except
|
||||
"I001", # Import block is un-sorted or un-formatted
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue