Widgets: Remove deprecations and make arguments keyword only by oscargus · Pull Request #26853 · matplotlib/matplotlib · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion ci/mypy-stubtest-allowlist.txt
26 changes: 26 additions & 0 deletions doc/api/next_api_changes/removals/26853-OG.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Most arguments to widgets have been made keyword-only
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Passing all but the very few first arguments positionally in the constructors
of Widgets is now keyword-only. In general, all optional arguments are keyword-only.

``RadioButtons.circles``
~~~~~~~~~~~~~~~~~~~~~~~~

... is removed. (``RadioButtons`` now draws itself using `~.Axes.scatter`.)

``CheckButtons.rectangles`` and ``CheckButtons.lines``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

``CheckButtons.rectangles`` and ``CheckButtons.lines`` are removed.
(``CheckButtons`` now draws itself using `~.Axes.scatter`.)

Remove unused parameter *x* to ``TextBox.begin_typing``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This parameter was unused in the method, but was a required argument.

``MultiCursor.needclear``
~~~~~~~~~~~~~~~~~~~~~~~~~

... is removed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
59 changes: 0 additions & 59 deletions lib/matplotlib/tests/test_widgets.py
Loading