mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 13:25:17 +00:00
[red-knot] Add tests for member lookup on union types (#14296)
## Summary - Write tests for member lookups on union types - Remove TODO comment part of: #14022 ## Test Plan New MD tests
This commit is contained in:
parent
13a1483f1e
commit
907047bf4b
2 changed files with 84 additions and 4 deletions
|
@ -1108,7 +1108,6 @@ impl<'db> Type<'db> {
|
|||
possibly_unbound = true;
|
||||
}
|
||||
Symbol::Type(ty_member, member_boundness) => {
|
||||
// TODO: raise a diagnostic if member_boundness indicates potential unboundness
|
||||
if member_boundness == Boundness::PossiblyUnbound {
|
||||
possibly_unbound = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue