Skip to content
This repository was archived by the owner on Jun 25, 2025. It is now read-only.

Verbose function snippet #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

dmc-au
Copy link

@dmc-au dmc-au commented Aug 16, 2022

I'd like to submit for consideration a 'verbose' function snippet that I use in conjunction with your other great snippets. It includes type hints and a docstring. The docstring is in line with the reStructuredText (reST) format.

It appears as follows:

def fname(arg: type) -> type:
    '''
    Function definition.

    :param arg: first param
    :returns: return
    '''

    return type

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant