Skip to content

Conversation

@lgalfaso
Copy link
Contributor

Fix an invalid example. The example attempts to do an index assignment on a range, this is not allowed as a range is immutable.

When running the example, it produces the following error:
Bazel: "Error: can only assign an element in a dictionary or a list, not in a 'range'"
Python: "TypeError: 'range' object does not support item assignment"

The example attempts to do an index assignment on a `range`, this is not allowed as a `range` is immutable.

When running the example, it produces the following error:

Bazel: "Error: can only assign an element in a dictionary or a list, not in a 'range'"
Python: "TypeError: 'range' object does not support item assignment"
@lgalfaso lgalfaso requested a review from brandjon as a code owner December 24, 2025 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant