mirror of https://github.com/astral-sh/ruff
Fix `Arg` typo (#6041)
This commit is contained in:
parent
242df67cbf
commit
c3ecdb8783
|
|
@ -4,7 +4,7 @@ use crate::checkers::ast::Checker;
|
||||||
use crate::codes::Rule;
|
use crate::codes::Rule;
|
||||||
use crate::rules::{flake8_builtins, pep8_naming, pycodestyle};
|
use crate::rules::{flake8_builtins, pep8_naming, pycodestyle};
|
||||||
|
|
||||||
/// Run lint rules over an [`Stmt`] syntax node.
|
/// Run lint rules over an [`Arg`] syntax node.
|
||||||
pub(crate) fn argument(arg: &Arg, checker: &mut Checker) {
|
pub(crate) fn argument(arg: &Arg, checker: &mut Checker) {
|
||||||
if checker.enabled(Rule::AmbiguousVariableName) {
|
if checker.enabled(Rule::AmbiguousVariableName) {
|
||||||
if let Some(diagnostic) = pycodestyle::rules::ambiguous_variable_name(&arg.arg, arg.range())
|
if let Some(diagnostic) = pycodestyle::rules::ambiguous_variable_name(&arg.arg, arg.range())
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue