mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-30 05:45:24 +00:00
Add some TODOs around import tracking
This commit is contained in:
parent
2e7878ff48
commit
f8932ec12b
2 changed files with 2 additions and 0 deletions
|
@ -8,6 +8,7 @@ use crate::check_ast::Checker;
|
|||
use crate::checks::{Check, CheckKind};
|
||||
use crate::flake8_bugbear::plugins::mutable_argument_default::is_mutable_func;
|
||||
|
||||
// TODO(charlie): Verify imports for each of the imported members.
|
||||
const IMMUTABLE_FUNCS: [&str; 11] = [
|
||||
"tuple",
|
||||
"frozenset",
|
||||
|
|
|
@ -4,6 +4,7 @@ use crate::ast::types::Range;
|
|||
use crate::check_ast::Checker;
|
||||
use crate::checks::{Check, CheckKind};
|
||||
|
||||
// TODO(charlie): Verify imports for each of the imported members.
|
||||
pub fn is_mutable_func(expr: &Expr) -> bool {
|
||||
match &expr.node {
|
||||
ExprKind::Name { id, .. }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue