diff options
| author | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2015-06-30 01:41:06 +0300 |
|---|---|---|
| committer | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2015-06-30 01:41:06 +0300 |
| commit | 2ac1f25574c7ee6c1e14fef09a9d20127d9c4e6f (patch) | |
| tree | 41778c199c74bffe68da9534850aab14a2140aea | |
| parent | b54fd663bcc197bc1e7084d23efe72fcfa8bb853 (diff) | |
| download | astroid-2ac1f25574c7ee6c1e14fef09a9d20127d9c4e6f.tar.gz | |
Add a couple of pragma disables for some false positives.
| -rw-r--r-- | astroid/as_string.py | 1 | ||||
| -rw-r--r-- | astroid/scoped_nodes.py | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/astroid/as_string.py b/astroid/as_string.py index bcbc6f8..eaa839f 100644 --- a/astroid/as_string.py +++ b/astroid/as_string.py @@ -50,6 +50,7 @@ def _repr_tree(node, result, indent='', _done=None, ids=False): node_str = str(node) if ids: node_str += ' . \t%x' % id(node) + # pylint: disable=unsupported-binary-operation; false positive result.append(indent + node_str) indent += INDENT for field in node._astroid_fields: diff --git a/astroid/scoped_nodes.py b/astroid/scoped_nodes.py index 3fc7012..eedd966 100644 --- a/astroid/scoped_nodes.py +++ b/astroid/scoped_nodes.py @@ -771,6 +771,7 @@ class Function(bases.Statement, Lambda): result = set() decoratornodes = [] if self.decorators is not None: + # pylint: disable=unsupported-binary-operation; damn flow control. decoratornodes += self.decorators.nodes decoratornodes += self.extra_decorators for decnode in decoratornodes: @@ -1487,6 +1488,7 @@ class Class(bases.Statement, LocalsDictNodeNG, mixins.FilterStmtsMixin): if exc.args and exc.args[0] not in ('', None): return exc.args[0] return None + # pylint: disable=unsupported-binary-operation; false positive return [first] + list(slots) def _inferred_bases(self, context=None): |
