-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6b4d329
commit a05c635
Showing
2 changed files
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -237,7 +237,9 @@ def _instantiate_call(self, node: ir.Node, call_site_id: CallSiteId) -> NodeRepl | |
# Identify call-stack for node, used to generate unique names. | ||
call_stack = self.node_context.get(node, []) | ||
|
||
cloner = _CopyReplace(self, attributes, value_map, node.metadata_props, call_stack + [call_site_id]) | ||
cloner = _CopyReplace( | ||
self, attributes, value_map, node.metadata_props, call_stack + [call_site_id] | ||
Check warning Code scanning / lintrunner RUFF/RUF005 Warning
Consider [\*call\_stack, call\_site\_id] instead of concatenation.
See https://docs.astral.sh/ruff/rules/collection-literal-concatenation |
||
) | ||
|
||
# iterate over the nodes in the function, creating a copy of each node | ||
# and replacing inputs with the corresponding values in the value map. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters