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:
|
rule:
|
||||||
pattern: $X = mapped_column($$$ARGS)
|
pattern: $X = mapped_column($$$ARGS)
|
||||||
any:
|
any:
|
||||||
- pattern: $X = mapped_column($$$BEFORE, String, $$$MID, nullable=True, $$$AFTER)
|
- pattern: $X = mapped_column($$$BEFORE, sa.String, $$$MID, nullable=True, $$$AFTER)
|
||||||
- pattern: $X = mapped_column($$$BEFORE, String, $$$MID, nullable=True)
|
- pattern: $X = mapped_column($$$BEFORE, sa.String, $$$MID, nullable=True)
|
||||||
rewriters:
|
rewriters:
|
||||||
- id: filter-string-nullable
|
- id: filter-string-nullable
|
||||||
rule:
|
rule:
|
||||||
|
|||||||
Reference in New Issue
Block a user