Skip to content

Conversation

@doronbehar
Copy link
Contributor

PR summary

A preparation refactoring commit for #30803 . Changes include:

  • widgets.pyi: Add missing RadioButtons.index_selected type hint
  • CheckButtons: rename _checks to _buttons
  • *Buttons: use a shared _Buttons class
  • *Buttons: use a semi-public self._buttons_ys variable
  • *Buttons: share more init functionality

PR checklist

Copy link
Member

@timhoffm timhoffm left a comment

Choose a reason for hiding this comment

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

Please add an entry to widget_api.rst



class CheckButtons(AxesWidget):
class _Buttons(AxesWidget):
Copy link
Member

Choose a reason for hiding this comment

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

Please add a docstring.

The class should be treated analogous to _SelectorWidget, including

The class itself is private and may be changed or removed without prior warning.
However, the public API it provides to subclasses is stable and considered
public on the subclasses.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Please add a docstring.

Done.

@github-actions github-actions bot added the Documentation: API files in lib/ and doc/api label Jan 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants