Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def skip_child(self, tree: ast.Node, child_name: str) -> bool:
skip = super().skip_child(tree, child_name)
if isinstance(tree, ast.Class) and child_name == "annotation":
return True
return skip