-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Add explicit getter / setter overloads for pyplot.{xlim,ylim} #30199
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 explicit getter / setter overloads for pyplot.{xlim,ylim} #30199
Conversation
I don't think the docstrings are correct here. Placing them on the overloads doesn't really produce both. What you end up with is the docstring to |
You've mentioned these as well, but it seems like this PR only changed |
I think the added complexity of the auto-generation is not not worth it, in particular given that we want a different docstring. As proposed in #30160 (comment) writing out the signature manually and/or adding overloads should be good enough. |
PR summary
This PR update the
tools/boilerplate.py
for autogenerate getter / setter:Axes.xlim
Axes.ylim
T.get_meth() -> TGet
;T.set_meth(...) -> TSet
PR checklist