mirror of
https://github.com/langgenius/dify.git
synced 2025-12-19 17:27:16 -05:00
Update dev/ast-grep/rules/remove-nullable-arg.yaml
Co-authored-by: Asuka Minato <i@asukaminato.eu.org>
This commit is contained in:
@@ -3,8 +3,8 @@ language: python
|
||||
rule:
|
||||
pattern: $X = mapped_column($$$ARGS)
|
||||
any:
|
||||
- pattern: $X = mapped_column($$$BEFORE, String, $$$MID, nullable=True, $$$AFTER)
|
||||
- pattern: $X = mapped_column($$$BEFORE, String, $$$MID, nullable=True)
|
||||
- pattern: $X = mapped_column($$$BEFORE, sa.String, $$$MID, nullable=True, $$$AFTER)
|
||||
- pattern: $X = mapped_column($$$BEFORE, sa.String, $$$MID, nullable=True)
|
||||
rewriters:
|
||||
- id: filter-string-nullable
|
||||
rule:
|
||||
|
||||
Reference in New Issue
Block a user