Skip to content

Conversation

@NSPC911
Copy link
Contributor

@NSPC911 NSPC911 commented Nov 11, 2025

threw me off when this happened to rovr, because the self._selected never got cleared when set_options was used instead of clear_options + add_options

Please review the following checklist.

  • Docstrings on all new or modified functions / classes
  • Updated documentation
  • Updated CHANGELOG.md (where appropriate)

threw me off when this happened to rovr, because the self._selected
never got cleared when `set_options` was used instead of `clear_options`
+ `add_options`
NSPC911 added a commit to NSPC911/rovr that referenced this pull request Nov 11, 2025
waiting for a new release that has
Textualize/textual#6224 merged
Copy link
Collaborator

@TomJGooding TomJGooding left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure this is correct? You can build a SelectionList with tuples or Selection objects, but here it looks like you're trying to use SelectionType?

@NSPC911
Copy link
Contributor Author

NSPC911 commented Nov 11, 2025

Are you sure this is correct? You can build a SelectionList with tuples or Selection objects, but here it looks like you're trying to use SelectionType?

not really sure which one to use, given that OptionList's set_option method only takes in an Iterable OptionListContent

@TomJGooding
Copy link
Collaborator

I'm confused, Did you check your code actually worked, or just throw the PR over the wall?

@NSPC911
Copy link
Contributor Author

NSPC911 commented Nov 12, 2025

The general code worked, but I'm not sure about which class to use as the type hint for the function

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.

2 participants