pylint: remove useless suppression

The newer version of pylint has fixed false positives and
does not need anymore these suppressions:
- global-variable-not-assigned
- invalid-sequence-index
- no-name-in-module
- not-callable
- unsupported-assignment-operation

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:
Florence Blanc-Renaud
2022-11-18 16:45:25 +01:00
parent cad06382a2
commit 12067297d8
7 changed files with 4 additions and 12 deletions

View File

@@ -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] # pylint: disable=invalid-sequence-index
return self.__members[key]
raise TypeError(
TYPE_ERROR % ('key', (str, int, slice, 'object with __name__'),
key, type(key))