Skip to content

Commit 4ca2656

Browse files
sulixgregkh
authored andcommitted
kunit: tool: Fix a python tuple typing error
[ Upstream commit 7421b1a ] 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 97752c3 ("kunit: kunit_tool: Allow .kunitconfig to disable config items") Signed-off-by: David Gow <[email protected]> Reviewed-by: Daniel Latypov <[email protected]> Acked-by: Brendan Higgins <[email protected]> Signed-off-by: Shuah Khan <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent f0ed115 commit 4ca2656

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/kunit/kunit_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
CONFIG_IS_NOT_SET_PATTERN = r'^# CONFIG_(\w+) is not set$'
1313
CONFIG_PATTERN = r'^CONFIG_(\w+)=(\S+|".*")$'
1414

15-
KconfigEntryBase = collections.namedtuple('KconfigEntry', ['name', 'value'])
15+
KconfigEntryBase = collections.namedtuple('KconfigEntryBase', ['name', 'value'])
1616

1717
class KconfigEntry(KconfigEntryBase):
1818

0 commit comments

Comments
 (0)