File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
crates/ruff_linter/src/rules/pydoclint/rules Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ use ruff_python_ast::helpers::{map_callable, map_subscript};
44use ruff_python_ast:: name:: QualifiedName ;
55use ruff_python_ast:: visitor:: Visitor ;
66use ruff_python_ast:: { self as ast, Expr , Stmt , visitor} ;
7- use ruff_python_semantic:: analyze:: visibility:: is_staticmethod;
87use ruff_python_semantic:: analyze:: { function_type, visibility} ;
98use ruff_python_semantic:: { Definition , SemanticModel } ;
109use ruff_source_file:: NewlineWithTrailingNewline ;
@@ -1098,7 +1097,7 @@ fn parameters_from_signature<'a>(docstring: &'a Docstring) -> Vec<&'a str> {
10981097 let Some ( function) = docstring. definition . as_function_def ( ) else {
10991098 return parameters;
11001099 } ;
1101- for param in function. parameters . iter ( ) {
1100+ for param in & function. parameters {
11021101 parameters. push ( param. name ( ) ) ;
11031102 }
11041103 parameters
@@ -1140,6 +1139,7 @@ pub(crate) fn check_docstring(
11401139 return ;
11411140 }
11421141
1142+ println ! ( "{:?}" , section_contexts) ;
11431143 // Prioritize the specified convention over the determined style.
11441144 let docstring_sections = match convention {
11451145 Some ( Convention :: Google ) => {
You can’t perform that action at this time.
0 commit comments