mirror of
https://github.com/astral-sh/ruff.git
synced 2026-11-21 12:16:15 +08:00
279 B
279 B
What it does
Checks for subscripting objects that do not support subscripting.
Why is this bad?
Subscripting an object that does not support it will raise a TypeError at runtime.
Examples
# TypeError: 'int' object is not subscriptable
4[1] # error