mirror of https://github.com/astral-sh/ruff
reapply fix
This commit is contained in:
parent
695f2723d4
commit
a2f9e5a680
|
|
@ -919,8 +919,7 @@ from typing import TYPE_CHECKING
|
|||
from mypackage.conflicted.other1 import x as x1
|
||||
import mypackage.conflicted.b.c
|
||||
|
||||
# error: [possibly-missing-attribute]
|
||||
reveal_type(mypackage.conflicted.b.c.y) # revealed: Unknown
|
||||
reveal_type(mypackage.conflicted.b.c.y) # revealed: int
|
||||
```
|
||||
|
||||
## Re-export Nameclash Problems In Functions
|
||||
|
|
|
|||
|
|
@ -12322,8 +12322,7 @@ impl<'db> ModuleLiteralType<'db> {
|
|||
let place_and_qualifiers = self
|
||||
.module(db)
|
||||
.file(db)
|
||||
.map(|file| imported_symbol(db, file, name, None))
|
||||
/*.map(|file| {
|
||||
.map(|file| {
|
||||
imported_symbol(db, file, name, None).map_type(|ty| {
|
||||
if let Some(importing) = self.importing_file(db)
|
||||
&& let Type::ModuleLiteral(module) = ty
|
||||
|
|
@ -12333,7 +12332,7 @@ impl<'db> ModuleLiteralType<'db> {
|
|||
ty
|
||||
}
|
||||
})
|
||||
})*/
|
||||
})
|
||||
.unwrap_or_default();
|
||||
|
||||
if !place_and_qualifiers.is_undefined() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue