Skip to content

Commit

Permalink
Add some missing words of explanation
Browse files Browse the repository at this point in the history
Because apparently I can't type English.
  • Loading branch information
davep committed Oct 5, 2023
1 parent 3b16206 commit ef4e5c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/textual/widgets/_option_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,8 @@ def _duplicate_id_check(self, candidate_items: list[OptionListContent]) -> None:
}
# Get the set of new IDs that we're being given.
new_option_ids = set(option.id for option in new_options)
# Now check for duplicates, both internally amongst the
# Now check for duplicates, both internally amongst the new items
# incoming, and also against all the current known IDs.
if len(new_options) != len(new_option_ids) or not new_option_ids.isdisjoint(
self._option_ids
):
Expand Down

0 comments on commit ef4e5c3

Please sign in to comment.