ruff B026 (star-arg unpacking after keyword argument)

This commit is contained in:
The MMGen Project 2026-08-10 09:54:40 +00:00
commit 288d63bddb
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
3 changed files with 2 additions and 3 deletions

View file

@ -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

View file

@ -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}

View file

@ -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