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

doc: add type hints #292

Merged
merged 6 commits into from
Oct 26, 2024
Merged

doc: add type hints #292

merged 6 commits into from
Oct 26, 2024

Conversation

bgilbert
Copy link
Member

Document AbstractSlide; it's used in the type signature of the DeepZoomGenerator constructor because DeepZoomGenerator also supports user-supplied AbstractSlide subclasses. Update the DeepZoomGenerator description to mention user-provided implementations.

Also several cleanups.

Several properties return tuples of items but are documented to return
lists.  Fix the docs.

Signed-off-by: Benjamin Gilbert <[email protected]>
Drop some redundant description text.  Don't document the types of the
standard OpenSlide property names, since they're all strings and would
clutter the list.

Signed-off-by: Benjamin Gilbert <[email protected]>
Remove type information from parameter documentation, since it's redundant
now.

Signed-off-by: Benjamin Gilbert <[email protected]>
It's used in the type signature of the DeepZoomGenerator constructor
because DeepZoomGenerator also supports user-supplied AbstractSlide
subclasses.  Ensure the hyperlink has somewhere to point, and update the
DeepZoomGenerator description to mention user-provided implementations.

Signed-off-by: Benjamin Gilbert <[email protected]>
No rendering changes intended.

Signed-off-by: Benjamin Gilbert <[email protected]>
@openslide-bot
Copy link

DCO signed off ✔️

All commits have been signed off. You have certified to the terms of the Developer Certificate of Origin, version 1.1. In particular, you certify that this contribution has not been developed using information obtained under a non-disclosure agreement or other license terms that forbid you from contributing it under the GNU Lesser General Public License, version 2.1.

@bgilbert bgilbert merged commit 2a040ab into openslide:main Oct 26, 2024
52 checks passed
@bgilbert bgilbert deleted the doc branch October 26, 2024 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants