Skip to content

Commit

Permalink
Some refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn committed Oct 15, 2019
1 parent 5fe6433 commit 09742a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_checker/test_presets.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def _is_visitor_class(cls) -> bool:
BaseTokenVisitor,
BaseVisitor,
}
if not inspect.isclass(cls):
if not inspect.isclass(cls) or cls.__qualname__.startswith('_'):
return False

return issubclass(cls, BaseVisitor) and cls not in base_classes
Expand Down

0 comments on commit 09742a9

Please sign in to comment.