From 82766bf4639e72a43196d3ff7027112d348fa568 Mon Sep 17 00:00:00 2001 From: Jade Abraham Date: Mon, 18 Nov 2024 14:44:56 -0800 Subject: [PATCH] formatting Signed-off-by: Jade Abraham --- tools/chapel-py/src/chapel/__init__.py | 4 +++- tools/chapel-py/src/chapel/replace/__init__.py | 8 ++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/tools/chapel-py/src/chapel/__init__.py b/tools/chapel-py/src/chapel/__init__.py index 752acafc01db..6c30699ed69f 100644 --- a/tools/chapel-py/src/chapel/__init__.py +++ b/tools/chapel-py/src/chapel/__init__.py @@ -139,7 +139,9 @@ def get_docstring(node: AstNode, sibling_map: SiblingMap) -> Optional[str]: return None -def parse_attribute(attr: Attribute, attribute: typing.Tuple[str, typing.Sequence[str]]): +def parse_attribute( + attr: Attribute, attribute: typing.Tuple[str, typing.Sequence[str]] +): """ Given an Attribute AST node, and a description of the attribute in the form (name, formal_names), return a mapping of formal names to their diff --git a/tools/chapel-py/src/chapel/replace/__init__.py b/tools/chapel-py/src/chapel/replace/__init__.py index 679c151e6f9f..dfadb5f548ed 100644 --- a/tools/chapel-py/src/chapel/replace/__init__.py +++ b/tools/chapel-py/src/chapel/replace/__init__.py @@ -100,7 +100,9 @@ def node_indent(self, node: chapel.AstNode) -> int: return range_start - self.lines[self.lines_back[range_start]] -def rename_formals(rc: ReplacementContext, fn: chapel.Function, renames: typing.Dict[str, str]): +def rename_formals( + rc: ReplacementContext, fn: chapel.Function, renames: typing.Dict[str, str] +): """ Helper iterator to be used in finder functions. Given a function and a map of ('original formal name' -> 'new formal name'), yields @@ -118,7 +120,9 @@ def name_replacer(name): yield (child, name_replacer(name)) -def rename_named_actuals(rc: ReplacementContext, call: chapel.Call, renames: typing.Dict[str, str]): +def rename_named_actuals( + rc: ReplacementContext, call: chapel.Call, renames: typing.Dict[str, str] +): """ Helper iterator to be used in finder functions. Given a function call expression, and a map of ('original name' -> 'new name'), yields