ruff/crates/red_knot_python_semantic/src
Charlie Marsh 70bdde4085
Handle unions in augmented assignments (#14045)
## Summary

Removing more TODOs from the augmented assignment test suite. Now, if
the _target_ is a union, we correctly infer the union of results:

```python
if flag:
    f = Foo()
else:
    f = 42.0
f += 12
```
2024-11-01 19:49:18 +00:00
..
module_resolver Enable nursery rules: 'redundant_clone', 'debug_assert_with_mut_call', and 'unused_peekable' (#13920) 2024-10-25 09:46:30 +02:00
semantic_index [red-knot] Remove Type::Unbound (#13980) 2024-10-31 20:05:53 +01:00
types Handle unions in augmented assignments (#14045) 2024-11-01 19:49:18 +00:00
util [red-knot] Improve ergonomics for the PySlice trait (#13983) 2024-10-29 20:40:59 +00:00
ast_node_ref.rs Enable nursery rules: 'redundant_clone', 'debug_assert_with_mut_call', and 'unused_peekable' (#13920) 2024-10-25 09:46:30 +02:00
db.rs Rename the ruff_vendored crate to red_knot_vendored (#13586) 2024-10-01 16:16:59 +01:00
lib.rs [red-knot] Remove Type::Unbound (#13980) 2024-10-31 20:05:53 +01:00
module_name.rs [red-knot] Add support for relative imports (#12910) 2024-08-16 12:35:27 +01:00
node_key.rs Implement AstNode for Identifier (#13207) 2024-09-02 16:27:12 +05:30
program.rs Eagerly validate typeshed versions (#12786) 2024-08-21 15:49:53 +00:00
python_version.rs Add Python version support to ruff analyze CLI (#13426) 2024-09-20 15:40:47 -04:00
semantic_index.rs [red-knot] Infer target types for unpacked tuple assignment (#13316) 2024-10-15 19:07:11 +00:00
semantic_model.rs [red-knot] Remove Type::Unbound (#13980) 2024-10-31 20:05:53 +01:00
site_packages.rs Use backticks for code in red-knot messages (#13599) 2024-10-02 03:14:28 +00:00
stdlib.rs [red-knot] Remove Type::Unbound (#13980) 2024-10-31 20:05:53 +01:00
symbol.rs [red-knot] Remove Type::Unbound (#13980) 2024-10-31 20:05:53 +01:00
types.rs Handle unions in augmented assignments (#14045) 2024-11-01 19:49:18 +00:00