We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f687a9 commit 496d9b4Copy full SHA for 496d9b4
ast-grep-kotoha.yaml
@@ -0,0 +1,10 @@
1
+# uvx --from ast-grep-cli ast-grep scan --rule ast-grep-kotoha.yaml examples/use_iterable.py
2
+id: do-not-use-list-as-typed-parameter
3
+language: Python
4
+rule:
5
+ pattern:
6
+ context: 'a: list[$TYPE]'
7
+ selector: type
8
+ inside:
9
+ kind: typed_parameter
10
+fix: Iterable[$TYPE]
0 commit comments