diff options
| author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-04-24 09:59:14 +0200 |
|---|---|---|
| committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-04-24 11:35:53 +0200 |
| commit | 274f001581573536fad757a8bad5a6226c32a568 (patch) | |
| tree | 440fd9ded2a0e71dea9b9240e03a4e14e89daf5b | |
| parent | fee33f80b362989bff63899218367e029b5528fa (diff) | |
| download | astroid-git-274f001581573536fad757a8bad5a6226c32a568.tar.gz | |
Disable false positive useless-suppression
See https://github.com/PyCQA/pylint/issues/4212
| -rw-r--r-- | astroid/node_classes.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/astroid/node_classes.py b/astroid/node_classes.py index 77625104..7faf6812 100644 --- a/astroid/node_classes.py +++ b/astroid/node_classes.py @@ -830,7 +830,7 @@ class NodeNG: result.extend([cur_indent + line for line in lines[1:]]) return len(lines) != 1 - # pylint: disable=unused-variable; doesn't understand singledispatch + # pylint: disable=unused-variable,useless-suppression; doesn't understand singledispatch @_repr_tree.register(tuple) @_repr_tree.register(list) def _repr_seq(node, result, done, cur_indent="", depth=1): @@ -861,7 +861,7 @@ class NodeNG: result.append("]") return broken - # pylint: disable=unused-variable; doesn't understand singledispatch + # pylint: disable=unused-variable,useless-suppression; doesn't understand singledispatch @_repr_tree.register(NodeNG) def _repr_node(node, result, done, cur_indent="", depth=1): """Outputs a strings representation of an astroid node.""" |
