Skip to content

docs: Add docstrings for attributes [skip tests] #3980

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

hpohekar
Copy link
Collaborator

@hpohekar hpohekar commented Apr 29, 2025

image

@github-actions github-actions bot added the documentation Documentation related (improving, adding, etc) label Apr 29, 2025
Comment on lines +100 to +102
#: This is a class attribute with a docstring.
my_attr = 42

Copy link
Collaborator Author

@hpohekar hpohekar Apr 29, 2025

Choose a reason for hiding this comment

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

@ansys/pyfluent-maintainers This is how we can add a class attribute docstring.

Comment on lines +137 to +138
#: This is an instance attribute with a docstring.
self.monitor = None
Copy link
Collaborator Author

@hpohekar hpohekar Apr 29, 2025

Choose a reason for hiding this comment

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

@ansys/pyfluent-maintainers This is how we can add an instance attribute docstring.

It will be rendered as follows:

image

mkundu1 added a commit that referenced this pull request Apr 30, 2025
Based on #3980's findings.

The script is mostly generated by AI. Please see the module doc on how
to run the script. There are around 400-450 undocumented attributes.
We'll plan how to divide the workload to add the missing attribute docs.

---------

Co-authored-by: pyansys-ci-bot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Documentation related (improving, adding, etc)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants