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

Upgrade comments of all functions to write params, returns properly #3

Open
krishnaglodha opened this issue Nov 30, 2023 · 0 comments

Comments

@krishnaglodha
Copy link
Collaborator

We should move to more standard format like

def format_greeting(name, greeting="Hello"):
    """
    Format a personalized greeting.

    Parameters:
    - name (str): The name of the person to greet.
    - greeting (str, optional): The greeting to use (default is "Hello").

    Returns:
    str: A formatted greeting string.
    """
    return f"{greeting}, {name}!"

as opposed to current

def _doc_location(rst_path: str, doc_link: str) ->  str:
    """
    Determines absolute path location for link, relative to provided path.

    Do not use as is, mkdocs only works with relative links

    :param rst_path: path of rst file providing the documentation link
    :param doc_link: documentation link (may be absolute or relative)
    :return: absolute path, indicating location relative to docs folder. Used for looking up title.
    """
@krishnaglodha krishnaglodha changed the title Upgrade comments of all functions to write params, returns propoerly Upgrade comments of all functions to write params, returns properly Nov 30, 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

No branches or pull requests

1 participant