From 67ecbf95d31370c1be2e0f39508ae6931e8ca6b9 Mon Sep 17 00:00:00 2001 From: Lee Miller Date: Mon, 14 Aug 2023 23:59:57 +0300 Subject: [PATCH] Suppress false positives on unsubscriptable-object in connection --- minode/connection.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/minode/connection.py b/minode/connection.py index c82c8cd..2cf57e0 100644 --- a/minode/connection.py +++ b/minode/connection.py @@ -255,6 +255,8 @@ class Connection(threading.Thread): structure.NetAddr(c.remote_version.services, c.host, c.port) for c in shared.connections if c.network != 'i2p' and c.server is False and c.status == 'fully_established'} + # pylint: disable=unsubscriptable-object + # https://github.com/pylint-dev/pylint/issues/3637 if len(shared.node_pool) > 10: addr.update({ structure.NetAddr(1, a[0], a[1])