Suppress false positives on unsubscriptable-object in connection

This commit is contained in:
Lee Miller 2023-08-14 23:59:57 +03:00
parent b38e00c0a3
commit 67ecbf95d3
Signed by: lee.miller
GPG Key ID: 4F97A5EA88F4AB63

View File

@ -255,6 +255,8 @@ class Connection(threading.Thread):
structure.NetAddr(c.remote_version.services, c.host, c.port) structure.NetAddr(c.remote_version.services, c.host, c.port)
for c in shared.connections if c.network != 'i2p' for c in shared.connections if c.network != 'i2p'
and c.server is False and c.status == 'fully_established'} 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: if len(shared.node_pool) > 10:
addr.update({ addr.update({
structure.NetAddr(1, a[0], a[1]) structure.NetAddr(1, a[0], a[1])