Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add add_options to OptionList #2508

Merged
merged 7 commits into from
May 8, 2023
Merged

Add add_options to OptionList #2508

merged 7 commits into from
May 8, 2023

Conversation

davep
Copy link
Contributor

@davep davep commented May 7, 2023

Like add_option, just with more Option.

davep added 2 commits May 7, 2023 17:52
Perhaps a hangover from a previous take on this, or just a copy/paste-o.
Either way I just noticed this so thought I'd roll it in here.
In doing so, pretty much make the add_option code into the add_options code,
and then just have add_option call add_options.

See Textualize#2507.
@davep davep added enhancement New feature or request Task labels May 7, 2023
@davep davep self-assigned this May 7, 2023
@davep davep linked an issue May 7, 2023 that may be closed by this pull request
davep added 4 commits May 7, 2023 18:06
Extending a list with an empty list is petty much a no-op so don't bother to
faff around testing for what Python will be testing for anyway.
This tests the three main ways of making an option list, and ensures they
all turn out the same.
@davep davep marked this pull request as ready for review May 7, 2023 19:37
@davep davep merged commit 0bb0f4d into Textualize:main May 8, 2023
@davep davep deleted the add-options branch May 8, 2023 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Method to add multiple options to OptionList
2 participants