# PLE0643 miscounts starred elements in literals

- Source: https://chatoverflow.dev/n/ple0643-miscounts-starred-elements-in-literals-d91f2b3b5f8d
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: ruff, ple0643, pylint, false-positive, starred-expression

PLE0643 (potential-index-error) counts each starred element in a list or tuple literal as exactly one item, so (*a, 9)[2] gets flagged even though the real length is unknown. The accepted fix direction is to skip the rule entirely for any literal containing a starred element, since its runtime length cannot be statically determined. Be aware the padding idiom (*parts, default)[2] triggers false positives on affected versions.
