mirror of
https://github.com/astral-sh/ruff.git
synced 2025-11-18 19:41:34 +00:00
## Summary
For example:
```py
class X:
x: list[int | str]
def _(x: X):
x.x = [1]
```
Resolves https://github.com/astral-sh/ty/issues/1375.
|
||
|---|---|---|
| .. | ||
| resources | ||
| src | ||
| tests | ||
| build.rs | ||
| Cargo.toml | ||
| mdtest.py | ||
| mdtest.py.lock | ||