Skip to content

Ignore warning on missing return #350

Answered by pawamoy
awgymer asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, in that case you can add a type to the docstring itself:

def my_func():
    """Summary.

    Returns:
        (natural language describing the type of the returned value): Description of the returned value.
    """

Format is (type): description. Reference: https://mkdocstrings.github.io/griffe/reference/docstrings/#google-section-returns.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@awgymer
Comment options

@pawamoy
Comment options

Answer selected by awgymer
@awgymer
Comment options

@pawamoy
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants