From 288d63bddbe74f4153c3a498972ea626176cff88 Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Mon, 10 Aug 2026 09:54:40 +0000 Subject: [PATCH] ruff B026 (star-arg unpacking after keyword argument) --- mmgen/msg.py | 2 +- mmgen/tx/completed.py | 2 +- pyproject.toml | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/mmgen/msg.py b/mmgen/msg.py index b189a187..93658802 100755 --- a/mmgen/msg.py +++ b/mmgen/msg.py @@ -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 diff --git a/mmgen/tx/completed.py b/mmgen/tx/completed.py index 373edf56..12fc5e34 100755 --- a/mmgen/tx/completed.py +++ b/mmgen/tx/completed.py @@ -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} diff --git a/pyproject.toml b/pyproject.toml index 631118c9..248df27b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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