flake8 line too long error addressed

This commit is contained in:
Aaditya Subedi 2025-11-19 13:06:38 +05:45
parent 7c3f665ba8
commit 51e0c84107

View file

@ -22,7 +22,7 @@ DEBUG_STATEMENTS = {
DEBUG_CALL_STATEMENTS = {
'breakpoint',
'print'
'print',
}
@ -50,7 +50,10 @@ class DebugStatementParser(ast.NodeVisitor):
def visit_Call(self, node: ast.Call) -> None:
"""python3.7+ breakpoint()"""
if isinstance(node.func, ast.Name) and node.func.id in DEBUG_CALL_STATEMENTS:
if (
isinstance(node.func, ast.Name) and
node.func.id in DEBUG_CALL_STATEMENTS
):
st = Debug(node.lineno, node.col_offset, node.func.id, 'called')
self.breakpoints.append(st)
self.generic_visit(node)