mirror of https://github.com/astral-sh/ruff
Intersect qualifiers when merging unions
This commit is contained in:
parent
18eaa659c1
commit
7c605221c0
|
|
@ -9545,7 +9545,7 @@ impl<'db> UnionType<'db> {
|
||||||
place: ty_member,
|
place: ty_member,
|
||||||
qualifiers: new_qualifiers,
|
qualifiers: new_qualifiers,
|
||||||
} = transform_fn(ty);
|
} = transform_fn(ty);
|
||||||
qualifiers |= new_qualifiers;
|
qualifiers &= new_qualifiers;
|
||||||
match ty_member {
|
match ty_member {
|
||||||
Place::Unbound => {
|
Place::Unbound => {
|
||||||
possibly_unbound = true;
|
possibly_unbound = true;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue