mirror of
https://github.com/astral-sh/ruff
synced 2026-01-21 13:30:49 -05:00
## Summary Previously, `del x[k]` incorrectly required the object to have a `__getitem__` method. This was wrong because deletion only needs `__delitem__`, which is independent of `__getitem__`. Closes https://github.com/astral-sh/ty/issues/1799.