support/testing: fix MyPy warnings about BRConfigTest

This removes warnings in editors/IDEs with MyPy typechecking
integration. Test classes override "config" with strings (different
type than None).

Signed-off-by: Fiona Klute (WIWA) <fiona.klute@gmx.de>
Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
Fiona Klute (WIWA)
2025-02-17 16:31:27 +01:00
committed by Julien Olivain
parent 1b9bba8599
commit ec2735686a

View File

@@ -24,8 +24,8 @@ MINIMAL_CONFIG = \
class BRConfigTest(unittest.TestCase):
"""Test up to the configure stage."""
config = None
br2_external = list()
config: str
br2_external: list[str] = list()
downloaddir = None
outputdir = None
logtofile = True