Skip to content

DOC Improve parameter type display#87

Merged
BorisMuzellec merged 14 commits intomainfrom
improve_docs_type_hinting
Feb 23, 2023
Merged

DOC Improve parameter type display#87
BorisMuzellec merged 14 commits intomainfrom
improve_docs_type_hinting

Conversation

@BorisMuzellec
Copy link
Copy Markdown
Collaborator

@BorisMuzellec BorisMuzellec commented Feb 22, 2023

Reference Issue or PRs

Fixes #86

What does your PR implement? Be specific.

This PR improves the display of parameters and returns types in the documentation.

Before:
Capture d’écran 2023-02-23 à 11 39 31

After:
Capture d’écran 2023-02-23 à 11 39 20

@BorisMuzellec BorisMuzellec changed the title Improve docs type hinting DOC Improve parameter type display Feb 23, 2023
@BorisMuzellec BorisMuzellec marked this pull request as ready for review February 23, 2023 10:41
@BorisMuzellec BorisMuzellec requested a review from a user February 23, 2023 10:41
Copy link
Copy Markdown
Collaborator

@maikia maikia left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @BorisMuzellec

autosummary_generate = False
autodoc_member_order = "groupwise"
autodoc_docstring_signature = True
python_use_unqualified_type_names = True
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

just a suggestion: we didn't write a comment on any of those sphinx settings and it's starting to be a lot of them, not always clear on a why. What do you think of adding a short comment on a why it is here?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Good idea, I'll add comments to explain their roles

@BorisMuzellec BorisMuzellec merged commit b9230f8 into main Feb 23, 2023
@BorisMuzellec BorisMuzellec deleted the improve_docs_type_hinting branch February 23, 2023 16:36
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.

DOC fix ugly type-hinting in the docs

2 participants