mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 13:24:57 +00:00
Fix clippy warnings
This commit is contained in:
parent
e76d5233a9
commit
4b434a06ae
1 changed files with 2 additions and 2 deletions
|
@ -1283,7 +1283,7 @@ impl<'db> Parameters<'db> {
|
|||
|
||||
let pos_only_param = |param: &ast::ParameterWithDefault| {
|
||||
if let Some(inferred_annotation_type) = inferred_annotation(param) {
|
||||
return Parameter {
|
||||
Parameter {
|
||||
annotated_type: Some(inferred_annotation_type),
|
||||
inferred_annotation: true,
|
||||
kind: ParameterKind::PositionalOnly {
|
||||
|
@ -1291,7 +1291,7 @@ impl<'db> Parameters<'db> {
|
|||
default_type: default_type(param),
|
||||
},
|
||||
form: ParameterForm::Value,
|
||||
};
|
||||
}
|
||||
} else {
|
||||
Parameter::from_node_and_kind(
|
||||
db,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue