summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDavid Gow <davidgow@google.com>2021-02-22 21:49:30 -0800
committerShuah Khan <skhan@linuxfoundation.org>2021-03-11 14:37:37 -0700
commit7421b1a4d10c633ca5f14c8236d3e2c1de07e52b (patch)
treef9a02807b55b5b6268e6f58ee76f52c9b0a41abd /tools
parenta38fd8748464831584a19438cbb3082b5a2dab15 (diff)
kunit: tool: Fix a python tuple typing error
The first argument to namedtuple() should match the name of the type, which wasn't the case for KconfigEntryBase. Fixing this is enough to make mypy show no python typing errors again. Fixes 97752c39bd ("kunit: kunit_tool: Allow .kunitconfig to disable config items") Signed-off-by: David Gow <davidgow@google.com> Reviewed-by: Daniel Latypov <dlatypov@google.com> Acked-by: Brendan Higgins <brendanhiggins@google.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/testing/kunit/kunit_config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/kunit/kunit_config.py b/tools/testing/kunit/kunit_config.py
index 0b550cbd667d..1e2683dcc0e7 100644
--- a/tools/testing/kunit/kunit_config.py
+++ b/tools/testing/kunit/kunit_config.py
@@ -13,7 +13,7 @@ from typing import List, Set
CONFIG_IS_NOT_SET_PATTERN = r'^# CONFIG_(\w+) is not set$'
CONFIG_PATTERN = r'^CONFIG_(\w+)=(\S+|".*")$'
-KconfigEntryBase = collections.namedtuple('KconfigEntry', ['name', 'value'])
+KconfigEntryBase = collections.namedtuple('KconfigEntryBase', ['name', 'value'])
class KconfigEntry(KconfigEntryBase):