From a95e11dbbff58804c5b85acaa4d70b72ce750ae0 Mon Sep 17 00:00:00 2001 From: Florence Blanc-Renaud Date: Jan 10 2023 09:11:45 +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))