INNER CODE UNIT · Python

parse_func_string

idealo/image-quality-assessment · mkdocs/autogen.py:61

def parse_func_string(comment):
    if comment is None or len(comment) == 0:
        return {}
    comments = {}
    paras = ('Args', 'Attributes', 'Returns', 'Raises')
    comment_parts = [
        'short_description',
        'long_description',
        'Args',
        'Attributes',
        'Returns',
        'Raises',
    ]
    for x in comment_parts:
        comments[x] = None

    parts = re.split(r'\n', comment)
    ind = 1

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…