Skip to content

Commit

Permalink
fix is_empty_astroid_slice
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmojaki committed Nov 25, 2022
1 parent 586ca78 commit 17fb607
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asttokens/util.py
Expand Up @@ -224,7 +224,7 @@ def is_empty_astroid_slice(node):
return (
node.__class__.__name__ == "Slice"
and not isinstance(node, ast.AST)
and node.lower is node.upper is node.step
and node.lower is node.upper is node.step is None
)


Expand Down

0 comments on commit 17fb607

Please sign in to comment.