-
Notifications
You must be signed in to change notification settings - Fork 53
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
xuzhenqi
committed
Oct 8, 2024
1 parent
2476fbc
commit 0dbc14c
Showing
1 changed file
with
1 addition
and
0 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 |
---|---|---|
|
@@ -959,6 +959,7 @@ def _match_node(self, pattern_node: NodePattern, node: ir.Node) -> bool: | |
|
||
self._matched[pattern_node] = node | ||
|
||
# Note: Need to revisit this to handle optional trailing inputs better. | ||
Check warning Code scanning / lintrunner EDITORCONFIG-CHECKER/editorconfig Warning
Trailing whitespace
Check warning Code scanning / lintrunner RUFF/W291 Warning
Trailing whitespace.
See https://docs.astral.sh/ruff/rules/trailing-whitespace |
||
if len(node.inputs) != len(pattern_node.inputs): | ||
return self.fail("Input nums mismatch. {len(node.inputs)} vs {len(pattern_node.inputs)}") | ||
|
||
|