mirror of https://github.com/langgenius/dify.git
Update dev/ast-grep/rules/remove-nullable-arg.yaml
Co-authored-by: Asuka Minato <i@asukaminato.eu.org>
This commit is contained in:
parent
c4ea3e47fd
commit
225238b4b2
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue