mirror of
https://github.com/astral-sh/ruff
synced 2026-01-21 21:40:51 -05:00
[ty] Make auto-import ignore symbols in modules starting with a _
This applies recursively. So if *any* component of a module name starts with a `_`, then symbols from that module are excluded from auto-import. The exception is when it's a module within first party code. Then we want to include it in auto-import.
This commit is contained in:
committed by
Andrew Gallant
parent
2a38395bc8
commit
32f400a457
@@ -594,7 +594,7 @@ impl SearchPath {
|
||||
)
|
||||
}
|
||||
|
||||
pub(crate) fn is_first_party(&self) -> bool {
|
||||
pub fn is_first_party(&self) -> bool {
|
||||
matches!(&*self.0, SearchPathInner::FirstParty(_))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user