Skip to content
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

Clean up some Event class docs. #20745

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

@QuLogic
Copy link
Member

@QuLogic QuLogic commented Jul 27, 2021

PR Summary

The main thing was removing the __init__ docstrings, which appear oddly, and should be integrated into the descriptions. Then some minor cleanup to duplicate sentences, and formatting.

PR Checklist

  • [n/a] Has pytest style unit tests (and pytest passes).
  • Is Flake 8 compliant (run flake8 on changed files to check).
  • [n/a] New features are documented, with examples if plot related.
  • Documentation is sphinx and numpydoc compliant (the docs should build without error).
  • Conforms to Matplotlib style conventions (install flake8-docstrings and run flake8 --docstring-convention=all).
  • [n/a] New features have an entry in doc/users/next_whats_new/ (follow instructions in README.rst there).
  • [n/a] API changes documented in doc/api/next_api_changes/ (follow instructions in README.rst there).
In addition to the `Event` and `LocationEvent` attributes, the below event
attributes are defined.
Comment on lines +1374 to +1375

This comment has been minimized.

@jklymak

jklymak Jul 27, 2021
Contributor

This still reads awkwardly. Maybe?

Suggested change
In addition to the `Event` and `LocationEvent` attributes, the below event
attributes are defined.
A MouseEvent has a number of special attributes in addition to those defined by the parent `Event` and `LocationEvent` classes:

This comment has been minimized.

@QuLogic

QuLogic Jul 27, 2021
Author Member

Yea, even though numpydoc says the order for classes is the same as normal functions with Parameters replaced by Attributes, the Attributes appear after Examples. So I needed to tweak the wording, but it's still not great.

I'm not sure if it's numpydoc that's wrong, or if this is a theme bug.

Copy link
Contributor

@jklymak jklymak left a comment

Just a couple of small suggestions.

@tacaswell tacaswell added this to the v3.5.0 milestone Aug 6, 2021
Co-authored-by: Jody Klymak <jklymak@gmail.com>
character ("g", "G", "#", etc.), a special key
("control", "shift", "f1", "up", etc.) or a
combination of the above (e.g., "ctrl+alt+g", "ctrl+alt+G").
The key(s) pressed. Could be *None*, a single case sensitive ASCII

This comment has been minimized.

@tacaswell

tacaswell Aug 6, 2021
Member

I think we can get back non-ascii now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants