test: add type annotation for ADDRS in p2p_addrv2_relay

Required to avoid unhappy python linter[1] result. Have to use annotation
instead of re-aligning with upstream (where ADDRS is populated in the
global state) due to reliance on `self.mocktime`, without which, the test
fails[2]

[1] - https://gitlab.com/dashpay/dash/-/jobs/6594035886
[2] - https://gitlab.com/dashpay/dash/-/jobs/6597322548
This commit is contained in:
Kittywhiskers Van Gogh 2024-04-11 17:49:35 +00:00
parent 022b76f20b
commit 1fedf470cd
No known key found for this signature in database
GPG Key ID: 30CD0C065E5C4AAD

View File

@ -6,6 +6,8 @@
Test addrv2 relay Test addrv2 relay
""" """
from typing import List
from test_framework.messages import ( from test_framework.messages import (
CAddress, CAddress,
msg_addrv2, msg_addrv2,
@ -17,7 +19,7 @@ from test_framework.util import assert_equal
I2P_ADDR = "c4gfnttsuwqomiygupdqqqyy5y5emnk5c73hrfvatri67prd7vyq.b32.i2p" I2P_ADDR = "c4gfnttsuwqomiygupdqqqyy5y5emnk5c73hrfvatri67prd7vyq.b32.i2p"
ADDRS = [] ADDRS: List[CAddress] = []
class AddrReceiver(P2PInterface): class AddrReceiver(P2PInterface):