Skip to content

Commit d528747

Browse files
committed
link faq in unuse dimport docs
1 parent 31054b7 commit d528747

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/ruff_linter/src/rules/pyflakes/rules/unused_import.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ use crate::{Applicability, Fix, FixAvailability, Violation};
6060
/// to remove third-party and standard library imports -- the fix is unsafe because the module's
6161
/// interface changes.
6262
///
63+
/// See [this FAQ section](https://docs.astral.sh/ruff/faq/#how-does-ruff-determine-which-of-my-imports-are-first-party-third-party-etc)
64+
/// for more details on how Ruff
65+
/// determines whether an import is first or third-party.
66+
///
6367
/// ## Example
6468
///
6569
/// ```python

0 commit comments

Comments
 (0)