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

Add inherited-members option to the gateway automodule configuration #354

Merged
merged 2 commits into from
Nov 24, 2022

Conversation

sbesson
Copy link
Member

@sbesson sbesson commented Nov 22, 2022

As most of these classes are effectively aliases/inherited, the current generated API documentation is pretty bare for the omero.gateway package as most methods are inherited from private base classes. This commit investigates using the inherited-members option to expose the docstrings

As most of these classes are effectively aliases/inherited, the
current generated API documentation is pretty bare for the omero.gateway
package as most methods are inherited from private base classes.
This commit investigates using the inherited-members option to expose
the docstrings
@sbesson
Copy link
Member Author

sbesson commented Nov 22, 2022

@will-moore @jburel see https://omero-py--354.org.readthedocs.build/en/354/omero.gateway.html#gateway._BlitzGateway as a starting point of feedback and discussion (for reference, https://omero-py.readthedocs.io/en/v5.13.0/omero.gateway.html#gateway.BlitzGateway is the current version of this page)

The options add a fair amount of verbosity but something of that nature is necessary in order to expose the docstrings for pieces of functionality as central e.g. the BlitzGateway constructor. I believe this is primarily a consequence of the current design of the gateway where for instance the public BlitzGateway class inherits from a private _BlitzGateway class where all the public API methods are defined

@will-moore
Copy link
Member

LGTM 👍

Copy link
Member

@jburel jburel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Patch release to have it under the stable docs asap?

@jburel jburel merged commit 24338e7 into ome:master Nov 24, 2022
@jburel
Copy link
Member

jburel commented Nov 25, 2022

@sbesson sbesson deleted the apidoc_inherited_members branch December 2, 2022 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants