diff options
-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: |