def detect_style(docstr):
    'Detect docstr style from existing docstring\n\n    Parameters:\n        docstr (str): docstring whose style we want to know\n\n    Returns:\n        class: one of [GoogleDocstring, NumpyDocstring, None]; None\n            means no match\n    '
    docstr = dedent_docstr(docstr)
    for c in STYLE_LOOKUP.values():
        if c.detect_style(docstr):
            return c
    return None
Detect docstr style from existing docstring

Parameters:
    docstr (str): docstring whose style we want to know

Returns:
    class: one of [GoogleDocstring, NumpyDocstring, None]; None
        means no match
def detect_style(docstr):
    'Detect docstr style from existing docstring\n\n    Parameters:\n        docstr (str): docstring whose style we want to know\n\n    Returns:\n        class: one of [GoogleDocstring, NumpyDocstring, None]; None\n            means no match\n    '
    docstr = dedent_docstr(docstr)
    for c in STYLE_LOOKUP.values():
        if c.detect_style(docstr):
            return c
    return None