From 8bb78ca9490b3266c7f70edea933cfb3f58fb0dd Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Mon, 10 Jun 2024 16:15:26 -0700 Subject: [PATCH] Fix format via 'black' This time, Jade, it did get caught by the CI check. Signed-off-by: Danila Fedorin --- tools/chplcheck/src/rules.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tools/chplcheck/src/rules.py b/tools/chplcheck/src/rules.py index 256a8c369fd9..28007755ee29 100644 --- a/tools/chplcheck/src/rules.py +++ b/tools/chplcheck/src/rules.py @@ -44,7 +44,6 @@ def might_incorrectly_report_location(node: AstNode) -> bool: indentation should leave these variables alone. """ - # some NamedDecl nodes currently use the name as the location, which # does not indicate their actual indentation. if isinstance(node, (VarLikeDecl, TupleDecl, ForwardingDecl)): @@ -54,14 +53,12 @@ def might_incorrectly_report_location(node: AstNode) -> bool: # keyword. # # https://github.com/chapel-lang/chapel/issues/24818 - elif ( - isinstance(node, (Function, Use, Import)) - and node.visibility() != "" - ): + elif isinstance(node, (Function, Use, Import)) and node.visibility() != "": return True return False + def fixit_remove_unused_node( node: AstNode, lines: Optional[List[str]] = None,