Skip to content

Commit

Permalink
chore: Update Python code refactoring blog post with Bowler syntax de…
Browse files Browse the repository at this point in the history
…tails
  • Loading branch information
lihuanshuai committed Jul 1, 2024
1 parent 4fb7cdc commit 7dc4d77
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions content/posts/refactor-python-code-with-bowler.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ pattern = f"""
"""
```

详细的语法规则可以参考 [博文](../python-grammar) 中的内容。

### 过滤器

过滤器是一个函数,它接受一个节点并返回一个布尔值,用于确定是否应该对该节点执行修复器。过滤器可以用于过滤节点,以便只对满足特定条件的节点执行修复器。比如:
Expand Down

0 comments on commit 7dc4d77

Please sign in to comment.