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 06e1364 commit 81feaf3Copy full SHA for 81feaf3
gdtoolkit/linter/class_checks.py
@@ -105,6 +105,8 @@ def _is_statement_irrelevant(statement: Statement) -> bool:
105
return True
106
if statement.kind == "annotation":
107
return Annotation(statement.lark_node).name != "tool"
108
+ if statement.kind == "class_def":
109
+ return True
110
return False
111
112
@@ -135,8 +137,6 @@ def _map_statement_to_section(statement: Statement) -> str:
135
137
and Annotation(statement.lark_node).name == "tool"
136
138
):
139
return "tools"
- if statement.kind == "class_def":
- return "others"
140
if statement.kind == "func_def":
141
return "others"
142
if statement.kind == "static_func_def":
0 commit comments