WIP: Handling a new pylint design checker message #17

Draft
lee.miller wants to merge 4 commits from lee.miller/MiNode:lint into v0.3
Showing only changes of commit 333af9169c - Show all commits

View File

@ -101,9 +101,10 @@ def _payload_read_int(data):
class Version():
"""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
@ -176,7 +177,8 @@ class Version():
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():