mirror of https://github.com/astral-sh/ruff
more
This commit is contained in:
parent
83a0e19e13
commit
dbe5696f8f
|
|
@ -13317,7 +13317,17 @@ impl<'db> ModuleLiteralType<'db> {
|
||||||
let place_and_qualifiers = self
|
let place_and_qualifiers = self
|
||||||
.module(db)
|
.module(db)
|
||||||
.file(db)
|
.file(db)
|
||||||
.map(|file| imported_symbol(db, file, name, None))
|
.map(|file| {
|
||||||
|
imported_symbol(db, file, name, None).map_type(|ty| {
|
||||||
|
if let Some(importing) = self.importing_file(db)
|
||||||
|
&& let Type::ModuleLiteral(module) = ty
|
||||||
|
{
|
||||||
|
Type::module_literal(db, importing, module.module(db))
|
||||||
|
} else {
|
||||||
|
ty
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
.unwrap_or_default();
|
.unwrap_or_default();
|
||||||
|
|
||||||
if !place_and_qualifiers.is_undefined() {
|
if !place_and_qualifiers.is_undefined() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue