From 372a5dc6b84586c1cf2d65328ccc067880843fe9 Mon Sep 17 00:00:00 2001 From: Florence Blanc-Renaud Date: Jan 10 2023 07:30:58 +0000 Subject: pylint: disable invalid-sequence-index Related: https://pagure.io/freeipa/issue/9278 Signed-off-by: Florence Blanc-Renaud Reviewed-By: Stanislav Levin --- diff --git a/ipalib/base.py b/ipalib/base.py index 2970bb1..d8f9ee7 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))