Fix false-positive in submodule resolution (#6435)

Closes https://github.com/astral-sh/ruff/issues/6433.
This commit is contained in:
Charlie Marsh 2023-08-08 22:36:39 -04:00 committed by GitHub
parent 1b9fed8397
commit a2758513de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 67 additions and 12 deletions

View file

@ -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>),