mirror of https://github.com/astral-sh/ruff
[flake8-bugbear][B006] remove outdated comment (#9776)
I noticed that the comment doesn't match the behavior: - zip function is not used anymore - parameters are not scanned in reverse ## Summary <!-- What's the purpose of the change? What does it do, and why? --> ## Test Plan No need Signed-off-by: Mikael Arguedas <mikael.arguedas@gmail.com>
This commit is contained in:
parent
d259cd0d32
commit
b947dde8ad
|
|
@ -83,7 +83,6 @@ impl Violation for MutableArgumentDefault {
|
||||||
|
|
||||||
/// B006
|
/// B006
|
||||||
pub(crate) fn mutable_argument_default(checker: &mut Checker, function_def: &ast::StmtFunctionDef) {
|
pub(crate) fn mutable_argument_default(checker: &mut Checker, function_def: &ast::StmtFunctionDef) {
|
||||||
// Scan in reverse order to right-align zip().
|
|
||||||
for ParameterWithDefault {
|
for ParameterWithDefault {
|
||||||
parameter,
|
parameter,
|
||||||
default,
|
default,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue