Suppress false positives on unsubscriptable-object in connection
This commit is contained in:
parent
b38e00c0a3
commit
67ecbf95d3
|
@ -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])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user