diff options
author | David Shea <dshea@redhat.com> | 2014-07-08 08:43:58 -0400 |
---|---|---|
committer | David Shea <dshea@redhat.com> | 2014-07-08 08:43:58 -0400 |
commit | f496577ae6b172f7188a1196bbf0bdf865498485 (patch) | |
tree | c0d17b917b36e3dff4eef0688e96357e711d4b25 | |
parent | aa1e081cbba4c86e911c39e41249582f41b4a0c7 (diff) | |
download | pylint-f496577ae6b172f7188a1196bbf0bdf865498485.tar.gz |
Skip the check for whether node is a Slice in visit_slice.
It would actually be pretty weird if the node weren't a Slice in this case.
-rw-r--r-- | checkers/typecheck.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/checkers/typecheck.py b/checkers/typecheck.py index 3080578..dfbce61 100644 --- a/checkers/typecheck.py +++ b/checkers/typecheck.py @@ -612,9 +612,6 @@ accessed. Python regular expressions are accepted.'} @check_messages('invalid-slice-index') def visit_slice(self, node): - if not isinstance(node, astroid.Slice): - return - # Check the type of each part of the slice for index in (node.lower, node.upper, node.step): if index is None: |