-
-
Notifications
You must be signed in to change notification settings - Fork 8k
Unify set_pickradius argument #23196
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
Conversation
/home/circleci/project/lib/matplotlib/axis.py:docstring of matplotlib.axis.Axis:45: WARNING: py:obj reference target not found: pickradius
I do not really understand the error. It seems like it picks up the docstring from get_pickradius
method now, as opposed to earlier where it got the docstring from the constructor argument(?).
I made it a property rather than directly accessing the attribute (although there were still get_pickradius
and set_pickradius
). I could of course revert that part, but it seems somehow more correct to use a private attribute and a property (simply skipping the property could break stuff elsewhere I assume).
bedd6d5
to
0d847c2
Compare
The docs failure looks real and needs to be fixed.
axis_api.rst
lists members explicitly by category. Adding the property Axis.pickradius
at axis_api.rst
l.153. Should fix the doc build.
Moved to draft pending fixing the doc build...
94e59a6
to
91f47d6
Compare
I'm quite sure that the test failure is intermittent (lack of disk space?).
PR Summary
Always store in
self._pickradius
. Added property where needed. Added check for positive number (not for Collection since a negative number can be used according to docs).Not sure if the
rename_parameter
is really needed since these are typically not called using kwargs, but better safe than sorry.PR Checklist
Tests and Styling
pytest
passes).flake8-docstrings
and runflake8 --docstring-convention=all
).Documentation
doc/users/next_whats_new/
(follow instructions in README.rst there).doc/api/next_api_changes/
(follow instructions in README.rst there).