#NEWLINE# def detect_style( docstr ) : #NEWLINE# #INDENT# '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    ' #NEWLINE# docstr = dedent_docstr ( docstr ) #NEWLINE# for c in STYLE_LOOKUP . values ( ) : #NEWLINE# #INDENT# if c . detect_style ( c ) : #NEWLINE# #INDENT# return c #NEWLINE# #UNINDENT# #UNINDENT# return None