Skip to content

Commit

Permalink
replaced class test with assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
pm3512 committed May 7, 2023
1 parent ca2587d commit d6c182e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions vulture/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,8 +600,7 @@ def _is_locals_call(node):
@staticmethod
def _is_subclass(node, class_name):
"""Return True if the node is a subclass of the given class."""
if not isinstance(node, ast.ClassDef):
return False
assert isinstance(node, ast.ClassDef)
for superclass in node.bases:
if (
isinstance(superclass, ast.Name)
Expand Down

0 comments on commit d6c182e

Please # to comment.