Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Merged
jklymak merged 1 commit intomatplotlib:mainfromoscargus:rrulewrapperdocs
May 18, 2022
Merged

Conversation

oscargus
Copy link
Member

@oscargusoscargus commentedMay 14, 2022
edited
Loading

PR Summary

Closes#21880
Builds on#21993

PR Checklist

Tests and Styling

  • [N/A] Has pytest style unit tests (andpytest passes).
  • IsFlake 8 compliant (installflake8-docstrings and runflake8 --docstring-convention=all).

Documentation

  • [N/A] New features are documented, with examples if plot related.
  • [N/A] New features have an entry indoc/users/next_whats_new/ (follow instructions in README.rst there).
  • [N/A] API changes documented indoc/api/next_api_changes/ (follow instructions in README.rst there).
  • Documentation is sphinx and numpydoc compliant (the docs shouldbuild without error).

@oscargus
Copy link
MemberAuthor

It works, although the documentation could be more verbose:
image

@oscargus
Copy link
MemberAuthor

Will improve the doc-strings and re-add links to rrulewrapper in the documentation.

@oscargusoscargus marked this pull request as draftMay 14, 2022 14:45
@oscargusoscargus marked this pull request as ready for reviewMay 15, 2022 13:25
@oscargus
Copy link
MemberAuthor

@@ -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.
Copy link
Member

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:

Suggested change
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.

Copy link
MemberAuthor

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.

Copy link
Member

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.

@jklymak
Copy link
Member

Lets just go ahead and merge this - I'll follow up with something to deprecate this wrapper, maybe for 3.7

@jklymakjklymak merged commit875209e intomatplotlib:mainMay 18, 2022
@QuLogicQuLogic added this to thev3.6.0 milestoneMay 18, 2022
@oscargusoscargus deleted the rrulewrapperdocs branchMay 19, 2022 07:43
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@jklymakjklymakjklymak left review comments

@timhoffmtimhoffmtimhoffm approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
v3.6.0
Development

Successfully merging this pull request may close these issues.

[Doc]: rrulewrapper not included in API docs
4 participants
@oscargus@jklymak@timhoffm@QuLogic

[8]ページ先頭

©2009-2025 Movatter.jp