From 372a5dc6b84586c1cf2d65328ccc067880843fe9 Mon Sep 17 00:00:00 2001 From: Florence Blanc-Renaud Date: Mon, 21 Nov 2022 17:53:36 +0100 Subject: [PATCH] pylint: disable invalid-sequence-index Related: https://pagure.io/freeipa/issue/9278 Signed-off-by: Florence Blanc-Renaud Reviewed-By: Stanislav Levin --- ipalib/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipalib/base.py b/ipalib/base.py index 2970bb188..d8f9ee728 100644 --- a/ipalib/base.py +++ b/ipalib/base.py @@ -469,7 +469,7 @@ class NameSpace(ReadOnly): if isinstance(key, str): return self.__map[key] if type(key) in (int, slice): - return self.__members[key] + return self.__members[key] # pylint: disable=invalid-sequence-index raise TypeError( TYPE_ERROR % ('key', (str, int, slice, 'object with __name__'), key, type(key))