From 4b38debc35067791e53b01e323dc8ffe075a9c0e Mon Sep 17 00:00:00 2001 From: Lee Miller Date: Tue, 22 Oct 2024 01:57:29 +0300 Subject: [PATCH] Addressed pylint too-many-positional-arguments in message.Version --- minode/message.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/minode/message.py b/minode/message.py index 82e7d90..c4e12ce 100644 --- a/minode/message.py +++ b/minode/message.py @@ -114,9 +114,10 @@ def _payload_read_int(data): class Version(IMessage): """The version message payload""" def __init__( - self, host, port, protocol_version=shared.protocol_version, - services=shared.services, nonce=shared.nonce, - user_agent=shared.user_agent, streams=None + self, host, port, + nonce=shared.nonce, services=shared.services, + *, streams=None, user_agent=shared.user_agent, + protocol_version=shared.protocol_version, ): self.host = host self.port = port @@ -189,7 +190,8 @@ class Version(IMessage): raise ValueError('malformed Version message, wrong streams_count') return cls( - host, port, protocol_version, services, nonce, user_agent, streams) + host, port, nonce, services, streams=streams, + protocol_version=protocol_version, user_agent=user_agent) class Inv(IMessage):