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

Added Docstrings to base.py #35

Open
wants to merge 19 commits into
base: main
Choose a base branch
from
Open

Added Docstrings to base.py #35

wants to merge 19 commits into from

Conversation

Ruttor
Copy link
Contributor

@Ruttor Ruttor commented Feb 24, 2023

No description provided.

@Ruttor Ruttor linked an issue Feb 24, 2023 that may be closed by this pull request
@Ruttor Ruttor marked this pull request as ready for review February 24, 2023 13:28
@Ruttor Ruttor requested a review from PythonFZ February 24, 2023 13:28
znflow/base.py Outdated
Comment on lines 115 to 117
"""

"""

Choose a reason for hiding this comment

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

Please provide proper docstring, or remove entirely

znflow/base.py Outdated
Comment on lines 52 to 54
"""A method that checks for an existing UUID.

If no UUID exists, it sets the previously defined UUID for the node.
Copy link
Member

Choose a reason for hiding this comment

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

Please add a Raises section

if self._uuid is not None:
raise ValueError("uuid is already set")
self._uuid = value

def run(self):
"""Run Method of NodeBaseMixin."""
Copy link
Member

Choose a reason for hiding this comment

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

The run method is a really important abstract method. It's the method that is executed upon the graph run call.

znflow/base.py Outdated
Comment on lines 91 to 92
attribute:
Node.attribute
Copy link
Member

Choose a reason for hiding this comment

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

I know, this is on me, but could you change this to numpy docstrings format?

znflow/base.py Outdated Show resolved Hide resolved
@Ruttor Ruttor self-assigned this Mar 24, 2023
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.

add docstrings
3 participants