From 526117ae18646e0ec22dd348c182da668accbf29 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Sat, 18 Nov 2023 07:12:26 +0100 Subject: [PATCH] chore: Remove useless PyLint suppressions --- ssb/feed/models.py | 2 +- ssb/muxrpc.py | 2 +- tests/test_packet_stream.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ssb/feed/models.py b/ssb/feed/models.py index d68ee62..56830c2 100644 --- a/ssb/feed/models.py +++ b/ssb/feed/models.py @@ -180,7 +180,7 @@ class Message: class LocalMessage(Message): """Class representing a local message""" - def __init__( # pylint: disable=too-many-arguments,super-init-not-called + def __init__( # pylint: disable=too-many-arguments self, feed: LocalFeed, content: Dict[str, Any], diff --git a/ssb/muxrpc.py b/ssb/muxrpc.py index 594d5cf..a96276a 100644 --- a/ssb/muxrpc.py +++ b/ssb/muxrpc.py @@ -38,7 +38,7 @@ class MuxRPCAPIException(Exception): """Exception to raise on MuxRPC API errors""" -class MuxRPCHandler: # pylint: disable=too-few-public-methods +class MuxRPCHandler: """Base MuxRPC handler class""" def check_message(self, msg: PSMessage) -> None: diff --git a/tests/test_packet_stream.py b/tests/test_packet_stream.py index b8a982b..98658d9 100644 --- a/tests/test_packet_stream.py +++ b/tests/test_packet_stream.py @@ -239,7 +239,7 @@ async def test_message_encoding(ps_client: MockSHSClient) -> None: # pylint: di @pytest.mark.asyncio async def test_message_stream( ps_client: MockSHSClient, mocker: MockerFixture # pylint: disable=redefined-outer-name -) -> None: # pylint: disable=redefined-outer-name +) -> None: """Test requesting a history stream""" await ps_client.connect() @@ -330,7 +330,7 @@ async def test_message_stream( @pytest.mark.asyncio async def test_message_request( ps_server: MockSHSServer, mocker: MockerFixture # pylint: disable=redefined-outer-name -) -> None: # pylint: disable=redefined-outer-name +) -> None: """Test message sending""" ps_server.listen()