mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-22 23:23:30 -06:00
pylint: disable invalid-sequence-index
Related: https://pagure.io/freeipa/issue/9278 Signed-off-by: Florence Blanc-Renaud <flo@redhat.com> Reviewed-By: Stanislav Levin <slev@altlinux.org>
This commit is contained in:
parent
6518855c34
commit
372a5dc6b8
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user