ruff/crates/red_knot_python_semantic/resources/mdtest/assignment
David Peter f1f3bd1cd3
[red-knot] Review remaining 'possibly unbound' call sites (#14284)
## Summary

- Emit diagnostics when looking up (possibly) unbound attributes
- More explicit test assertions for unbound symbols
- Review remaining call sites of `Symbol::ignore_possibly_unbound`. Most
of them are something like `builtins_symbol(self.db,
"Ellipsis").ignore_possibly_unbound().unwrap_or(Type::Unknown)` which
look okay to me, unless we want to emit additional diagnostics. There is
one additional case in enum literal handling, which has a TODO comment
anyway.

part of #14022

## Test Plan

New MD tests for (possibly) unbound attributes.
2024-11-11 20:48:49 +01:00
..
annotations.md [red-knot] Remove Type::Unbound (#13980) 2024-10-31 20:05:53 +01:00
augmented.md [red-knot] Add MRO resolution for classes (#14027) 2024-11-04 13:31:38 +00:00
multi_target.md [red-knot] Port type inference tests to new test framework (#13719) 2024-10-15 11:23:46 -07:00
unbound.md [red-knot] Review remaining 'possibly unbound' call sites (#14284) 2024-11-11 20:48:49 +01:00
walrus.md [red-knot] Port type inference tests to new test framework (#13719) 2024-10-15 11:23:46 -07:00