mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-23 03:44:31 +00:00
Fix false-positive in submodule resolution (#6435)
Closes https://github.com/astral-sh/ruff/issues/6433.
This commit is contained in:
parent
1b9fed8397
commit
a2758513de
6 changed files with 67 additions and 12 deletions
|
@ -585,7 +585,7 @@ impl<'a> Imported<'a> for FromImport<'a> {
|
|||
}
|
||||
|
||||
/// A wrapper around an import [`BindingKind`] that can be any of the three types of imports.
|
||||
#[derive(Debug, Clone)]
|
||||
#[derive(Debug, Clone, is_macro::Is)]
|
||||
pub enum AnyImport<'a> {
|
||||
Import(&'a Import<'a>),
|
||||
SubmoduleImport(&'a SubmoduleImport<'a>),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue