Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Add rrulewrapper to docs#23048
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Add rrulewrapper to docs#23048
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Will improve the doc-strings and re-add links to rrulewrapper in the documentation. |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
@@ -981,16 +981,28 @@ def __call__(self, x, pos=None): | |||
class rrulewrapper: | |||
""" | |||
A simple wrapper around a ``dateutil.rrule`` allowing flexible | |||
A simple wrapper around a `dateutil.rrule` allowing flexible | |||
date tick specifications. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Can we add some clue here as to how this is supposed to be used? There are no documented methods on the class, which is probably fine, but as it stands this is kind of mysterious. Maybe:
datetickspecifications. | |
datetickspecifications.Usuallypasseduponinittoasubclassof`RRuleLocator`. |
I will say that adding this wrapper seems a bit cumbersome versus just passingfreq
,tzinfo
etc to theRRuleLocator
directly. If it were up to me, I'd deprecate rrulewrapper as public and get rid of it all together.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
OK! I do not have any strong opinions on it. Clearly people have managed without it being documented for quite some time now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Well I doubt we will deprecate it now - lets improve the docs even if it doesn't stick around.
Lets just go ahead and merge this - I'll follow up with something to deprecate this wrapper, maybe for 3.7 |
Uh oh!
There was an error while loading.Please reload this page.
PR Summary
Closes#21880
Builds on#21993
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).